Choose five international source currencies to monitor Each

Choose five international source currencies to monitor. Each currency is referenced with a three letter ISO 4217 currency code. For example, the code for the U.S. Dollar currency is USD. Search online for these abbreviations with a search string such as \"ISO 4217 Currency Codes.\" Place these currency codes in a text file.

The following URL is a link to a CSV file that contains the exchange rate for a given source and target currency. For example, if the source currency is EUR and the target currency is USD, the URL is

http://download.finance.yahoo.com/d/quotes.csv?s=EURUSD=X&f=sl1d1t1ba&e=.csv

Read the five source currencies in the text file that you created in Step 1, dynamically create URLs that are passed to Java Scanner objects to obtain the exchange rates (to USD) for five source currencies from Part 1.

Plot the five exchange rates that you found in Step 2 in a JFreeChart bar chart. See the BarChart Example in the jfreechart example file.

Your Java project should contain only a single class, which contains the main method. This class must define at least three additional static methods that modularize the tasks in this project. For example, you might define methods such as these:

Solution

#include<iostream>
#include<string>
#include<stdlib>


// during this example items aer represented as number values
// we are going to build them constants, in order that if at any time we would like to alter their values we will do thus here
// however can still ought to recompile

const int pawn = 100;
const int bishop = 305;
const int knight = 300;
const int rook = 500;
const int queen = 900;
const int king = 2000;

// an alternate would be to use string constants or another information kind

//now we want a board to place the items on and move around on
//the board information kind ought to match the items information kind
// the board in regular chess is usually 8x8, except for speedy legal move generator
//other programs use larger than 8x8 wherever Associate in Nursing 8x8 real board exists in an exceedingly larger array id est 12x14
// except for simplicity of understanding we are going to use the easy 8x8

int board[8][8];

// board [rank] [file];
// wherever rank = zero - seven (1 to eight on a true chess board) and file = zero - seven (a - h)

const startup[8][8] = ;

// the startup constant contains the quality beginning position of all chess games (not variants)
//each facet has eight items and eight pawns / all pawns ar on the colors individual ranks
// for black items we have a tendency to use -piecetype. (negative)

void setup (void) {
int i, j;
   for (i = 0; i < 8; i++){
       for (j = 0; j < 8; j++){
           board[i][j] = startup[i][j]; //setup beginning position
   }
       }

}

//the 2 for loops run through all the iteratins of the 8x8 array and replica the beginning position to the important board.

// next we want a operate which will show the board how either graphics or text
// during this case we are going to print to the screen a text version of the boards contents

//it is commonplace in FEN notations and different text of a chess board to specific each bit by it\'s 1st letter
// except the knight that uses \'N\'

// the black items ar minuscule whereas the white items ar capital letter
// otherwise it\'s not possible to differentiate black items from white items

void printb (void)should be here so as to start mistreatment strings.
int a, b;
string piece;
for (a = seven; a > -1; a--){ // we have a tendency to should tell the ranks down from 7 to zero otherwise the board are going to be the wrong way up
cout << endl;
for (b = 0; b < 8; b++)
       if (passd.substr(0, 5) == \"print\") { // show the board
       printb();
       }
       if (passd.substr(0, 3) == \"new\") enkindle a brand new game
       setup();
       }
       if (passd.substr(0, 1) >= \"a\" && passd.substr(0, 1) <= \"h\" && passd.substr(1, 1) >= \"1\" && passd.substr(1, 1) <= \"8\" && passd.substr(2, 1) >= \"a\" && passd.substr(2, 1) <= \"h\" && passd.substr(3, 1) >= \"1\" && passd.substr(3, 1) <= \"8\") certain each squares ar on the chess board once capital punishment //a move
       // execute move
       // then show new board position

       int a, b, c, d;


       a = passd[0] - \'a\';
       b = passd[1] - \'1\';
       c = passd[2] - \'a\';
       d = passd[3] - \'1\';

//executes the move if its on the board!
       board[d][c] = board[b][a];
       board[b][a] = 0;

       printb(); //prints bent the screen the updated position when moving the items
       }
       }
}

Choose five international source currencies to monitor. Each currency is referenced with a three letter ISO 4217 currency code. For example, the code for the U.
Choose five international source currencies to monitor. Each currency is referenced with a three letter ISO 4217 currency code. For example, the code for the U.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site