Question: Write a program that operates a currency conversion between US Dollar (USD) and EURO (EUR). 1) Immediately after execution, the program asks the user to

Write a program that operates a currency conversion between US Dollar (USD) and EURO (EUR).

1) Immediately after execution, the program asks the user to insert the exchange rate from EURO to USD (e.g. 1 EUR=1.27 USD).

2) Then, the program asks the user to select which currency conversion is desired.

3) Then, 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 appropriate exchange rate (EUR-> USD or USD->EUR).

4) The program loops over tasks 1, 2 and 3 to repeat the same procedure until the user entres an exchange rate of 0 (see example below). Hint: use a while loop that embraces tasks 1, 2 and 3, nad break out of this outer loop when the user enters 0.

Please write a program that will be compatible with the code editor Codeblocks

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!