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

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!