Problem Statement: Exchange of currencyrates You are required to write a program
ID: 3618252 • Letter: P
Question
Problem Statement: Exchange of currencyrates
You are required to write a program for Currency Exchange rates.The basic idea is that user/reader will be able to interchangedifferent currencies using our program. User will have threeoptions i.e. Pakistani Rupees, US Dollars, and Euro.
Detailed Description:
1. The program should display
Please select currencies that you want to exchange.
Description:
Enter ‘R’for Pakistani Rupees.
Enter ‘E’for Euro.
Enter ‘D’for Dollar.
Then your program should take these inputs,
2. Depending upon the choices that userhas entered, your program will further display the prompt
3. Then the program should take two inputsfrom the user as:
-----------------------------------------------------------------
Pleaseselect the currency that you want to convert:
Pleaseselect the currency that you want to convert into:
-----------------------------------------------------------------
4. After getting both inputs, program willcalculate the currency rates on the basis on this information.
1 Euro = 112 Rupees.
1 Dollar = 84 Rupees.
1 Euro = 1.33 Dollars
1 Dollar = 0.75 EUR
After calculating the conversion rate for the selectedcurrencies display it on the screen.
In the end of the program, user should be asked if he/she wantsto make another conversion.
If user presses y then the whole program shouldstart again. If user presses n then the programshould terminate.
Sample Output
Dev c++ Output:
Please select currencies that you want to exchange.
Description:
Enter ‘R’for Pakistani Rupees.
Enter ‘E’for Euro.
Enter ‘D’ for Dollar.
Please select the currency that you want toconvert :E
Please select the currency that you want toconvert into: D
Please enter the amount in Euro : 12
12 Euro = 16 Dollars
Do you want to make another conversion? (y/n) :y
Please select currencies that you want to exchange.
Description:
Enter ‘R’ forPakistani Rupees.
Enter ‘E’ forEuro.
Enter‘D’ for Dollar.
Please select the currency that you want to convert:R
Please select the currency that you want to convertinto: D
Please enter the amount in Rupees :90
90 Rupees = 1.07143 Dollars
Do you want to make another conversion? (y/n) :n
Hints:
Dev c++ Output:
Please select currencies that you want to exchange.
Description:
Enter ‘R’for Pakistani Rupees.
Enter ‘E’for Euro.
Enter ‘D’ for Dollar.
Please select the currency that you want toconvert :E
Please select the currency that you want toconvert into: D
Please enter the amount in Euro : 12
12 Euro = 16 Dollars
Do you want to make another conversion? (y/n) :y
Please select currencies that you want to exchange.
Description:
Enter ‘R’ forPakistani Rupees.
Enter ‘E’ forEuro.
Enter‘D’ for Dollar.
Please select the currency that you want to convert:R
Please select the currency that you want to convertinto: D
Please enter the amount in Rupees :90
90 Rupees = 1.07143 Dollars
Do you want to make another conversion? (y/n) :n
Explanation / Answer
x.X
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.