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
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.
Step by Step Solution
3.42 Rating (168 Votes )
There are 3 Steps involved in it
Advanced17cpp converts American dollars to different currencies Createdrevised by on include include using namespace std int main int choice 0 int americanDollars 0 double convertedValue 00 const doub... View full answer
Get step-by-step solutions from verified subject matter experts
