Question
Write a C ++ program that operates a currency conversion between US Dollars (USD) and EURO (EUR). Immediately after execution, the program asks the user
Write a C ++ program that operates a currency conversion between US Dollars (USD) and EURO (EUR).
Immediately after execution, the program asks the user to select which conversion is desired: Options:
1: USD-> EUR
2: EUR -> USD
Please select an option: After selection, the program asks the user to insert the conversion factor from EURO to USD (e.g. 1 EUR=1.4 USD).
Finally, the program converts and displays (in a tabular form) the first ten amounts (1-10 USD or 1-10 EUR) into the destination currency, using the conversion factor provided by the user.
Sample Program display Options:
1: USD-> EUR
2: EUR -> USD
Please select an option:
2 Please insert the conversion factor (EUR->USD): 1.4 EUR per 1 USD ----------------------
1 1.4
2 2.8
3 4.2
4 5.6
5 7
6 8.4
7 9.8
8 11.2
9 12.6
10 14
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started