Question: 7. 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

 7. In this exercise, you will create a program that converts

7. 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. (Hint: Designate a code for each currency, and use cout statements to display a menu that lists each code and the name of its corresponding currency.) Use the Internet to research the exchange rates. If necessary, create a new project named Advanced17 Project, and save it in the Cpp81Chap06 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!