We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

 

Problem Statement: Exchange of currency rates

 

You are required to write a program for Currency Exchange rates. The basic idea is that user/reader will be able to interchange different currencies using our program. User will have three options 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 user has entered, your program will further display the prompt

 

3.  Then the program should take two inputs from the user as:

      -----------------------------------------------------------------

          Please select the currency that you want to convert :            

          Please select the currency that you want to convert into:

       -----------------------------------------------------------------

 

4.  After getting both inputs, program will calculate 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 selected currencies display it on the screen.

 

In the end of the program, user should be asked if he/she wants to make another conversion.

 

If user presses y then the whole program should start again. If user presses n then the program should 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 to convert : E         

    Please select the currency that you want to convert 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’ for Pakistani Rupees.

       Enter ‘E’ for Euro.

          Enter ‘D’ for Dollar.

 

   Please select the currency that you want to convert : R         

   Please select the currency that you want to convert into: D

 

   Please enter the amount in Rupees : 90

 

   90 Rupees = 1.07143 Dollars

 

   Do you want to make another conversion? (y/n) : n

 

    

 

 

 

Hints:

  • You have to use if/else statements to switch among different currency combinations.
  • For repeating the whole program again by prompting the user, you have to use a char variable “choice” which will take the choice of the user in yes or no (y or n). You can use while or do-while loop for this purpose.
  • You must write your comments in critical areas of the program to explain the logic that you have used in that specific point. Do not use comments where they are not needed.
  • The output of your program may differ with one or two digits after fraction point. It won’t be an issue of deduction of marks.

 

 

Deadline

Your assignment must be uploaded/submitted on or before April 26, 2010

Please Discuss here about this assignment.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 296

Replies to This Discussion

need solution of cs201 assignment
plzzzzzz, help to solve the assingment. tell the detail way of programming, whats sequence of steps,
Thanls
Tariq bhai mere pass to abhi tak books hi nai ponchi or computer pe b 1 lec tak nai parh saka bijli ki waja se.plz hlp me.
It is very easy to solve this assignment.
First you just creat the whole display of the output program with the help of " cout " statement.
Then start writing the calculation code sequentially with the help of " If Else" statement.
I think every one can solve it like this.

Take care
Still facing problem ---------------------- do contact me.
check it i hope it help u in making ur assignment
Attachments:
plz is se sirf idea le is file ko submit na karwae ho sakta he is me errors ho
thanks yaar
salam plz send the solution cs201

RSS

Looking For Something? Search Here

Latest Activity

Mani Siddiqui BS VIII replied to Mani Siddiqui BS VIII's discussion Ms or Certifications !!!!
35 minutes ago
Zohaib Hassan posted a discussion
43 minutes ago
Laila kabeer posted a discussion
1 hour ago
Zohaib Hassan replied to Bakhtawar khan's discussion <<<<<hann g>>>>>>>>
2 hours ago
Zohaib Hassan replied to Mani Siddiqui BS VIII's discussion Ms or Certifications !!!!
2 hours ago
Zohaib Hassan liked Mani Siddiqui BS VIII's discussion Ms or Certifications !!!!
2 hours ago
Profile IconSiddique, Muhammad Amir and rashad joined Virtual University of Pakistan
2 hours ago
Mani Siddiqui BS VIII posted a status
"دو تہائی سے زیادہ قبرستان ہے یہ دنیا کسی کا دل مر گیا اور کوئی پورا مر گیا"
3 hours ago

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.