-
I need help with this!!!
I am trying to write the coding for 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.
Note that your output must be formatted and aligned neatly. Insert comments in the program to document the program internally.
-
Look ob1cnobe, I already told you you won't get far that way. No one here will write the entire program for you. They will at most hint you in the right direction and answer some specific doubts you may have.
So, before making an ass of yourself, don't post again those 3 messages you sent me and just read a good tutorial (start with the one from this website). That alone will help you a lot. Then when and if you can't do something, post your doubt here.
Also, read the FAQ for these forums.
-
You forgotte to post the code you have done? You also forgotte to post a question.
-
have 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.
-
ob, are you completely NOT understanding what everyone has told you? All that you are posting is an explanation of what the program should do and an example of possible output. No one here is going to do your homework for you, and reposting this same message isn't winning you any points either.
If you are stuck with a problem in your code then post the CODE you have so far and what you don't understand about it. Then we'll be happy to help you in that area.
-
yeah his question is:
"i'm too stupid to learn, i'm too stupid to find things out for myself and give things a go, i dont know how to read other peoples posts and adhere to their advice, so can you please do my homework for me so i can join the ranks of yet another moron student who passes a subject without knowing anything about it!?"
-
You can tell they read the posting guidelines. Which rule didn't they break???