I am writing a program that takes user input of dollars, euros, and yen. Converts the yen and euros to dollars, keeps a running total and prints the total when the user chooses to exit program. The following program works fine except when I choose to exit the program it does not give me the total of all of the amounts that were entered. It only gives me the amount of the last input. Can someone give me a clue about what I am doing wrong?
[ March 25, 2006: Message edited by: Bear Bibeault ]
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
How many sites are you planning on posting this into? You got help in two threads for this same code this morning on the Sun forums and now here as well.
It's good to get different ideas on how to write the best programs. As you notice different programmers have different ways of writing programs that produce the same result.
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, that will fit in a stocking