In this exercise, you will create a program that converts U.S. dollars to a different currency. The

Question:

In this exercise, you will create a program that converts U.S. dollars to a different currency. The number of American dollars should always be an integer that is greater than or equal to zero. The user should be able to choose the currency from the following list: Canadian Dollar, Euro, Indian Rupee, Japanese Yen, Mexican Peso, South African Rand, and British Pound. Use the Internet to research the exchange rates. If necessary, create a new project named Advanced17 Project, and save it in the Cpp8\Chap06 folder. Enter your C++ instructions into a source file named Advanced17.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the results in fixed-point notation with two decimal places. Save and run the program. Test the program nine times. For the first seven tests, convert 10 American dollars to each of the seven different currencies. For the eighth test, use –3 as the number of American dollars.

For the last test, use an invalid currency code.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: