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.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *