Need help with code!

This is a discussion on Need help with code! within the C++ Programming forums, part of the General Programming Boards category; Create a menu that allows the user to choose which currency and the amount of the foreign currency they wish ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    15

    Need help with code!

    Create a menu that allows the user to choose which currency and the amount of the foreign currency they wish to convert to US dollars. The menu is displayed using a loop. The program will continue running until the user select "Exit" option. Function(s) (besides main()) must be used. Inputs should be checked for validity. An example of the output is as follows:


    Currency Conversion
    ------------------------------------------------
    1) Swiss Franc
    2) British Pound
    3) Japanese Yen
    4) Canadian Dollar
    5) Euro
    6) Exit the Program

    Enter Your Choice (1-6): 3
    Enter the Amount: 1000


    1000 Japanese Yen = 8.1 US Dollars

    ------------------------------------------------
    1) Swiss Franc
    2) British Pound
    3) Japanese Yen
    4) Canadian Dollar
    5) Euro
    6) Exit the Program

    Enter Your Choice (1-6): 9
    9 is an invalid selection. Try again!

    ------------------------------------------------
    1) Swiss Franc
    2) British Pound
    3) Japanese Yen
    4) Canadian Dollar
    5) Euro
    6) Exit the Program

    Enter Your Choice (1-6): 6
    Goodbye.

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    I see. But uhm, you don't want us to create the menu, isn't it? So I guess you have forgotten to post the question. Please post your question so that we can help you.

  3. #3
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210
    Thanks, but I have my own homework to do.
    "The mind, like a parachute, only functions when open."

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    geez! how many times do you have to post the SAME post to this forum??!!

    This is the 4th thread that i've seen that has this garbage in it!!
    Why cant you follow my advice, and other people's advice and DO SOME WORK YOURSELF FIRST!!!

    Multiple posts of the same thing will just annoy people.

    If you haven't figure this out by now by reading what everyone has been saying to you then you are obviously too stupid to be learning this stuff.. so just give up now before your stupidity starts to rub off on other people!

    U.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  5. #5
    Registered User Mario's Avatar
    Join Date
    May 2002
    Posts
    317
    Well, I think it's a waste of your time, Uraldor.
    Looking at his nickname I could swear I can almost read obnoxious noob... so, we may as well have a troll around the place. He will go away...
    Regards,
    Mario Figueiredo
    Using Borland C++ Builder 5

    Read the Tao of Programming
    This advise was brought to you by the Comitee for a Service Packless World

  6. #6
    Nerd Xmevs's Avatar
    Join Date
    Apr 2002
    Posts
    146
    I suppose it's Obi-wan Kenobie (or summit) pronounced [˘bie one ken˘bii] from Start Wars. ob1cnobe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21