well it is supposed to loop over and over again. Also it is supposed to check for non numeric values and insufficient amounts entered. I noticed that with this working version it allows the input of numbers like 3.455 and it calculates negative amounts with parenthesis around a positive number. I need it to catch an exception when the amount entered is not a dollar and cents amount, and when the cash tendered is less than the amount due so that the program will not terminate but simply start over. I'm definitely confused with the try / catch statements.
i am creating a simple change calculating program and I need to have it check it for user errors (entering non numeric values, or entering more cash due than cash tendered) any help on this would be appreciated. Thanks! Crystal S.
I am trying to make a program that calculates the change due in dollars and cents. The user inputs both the amount due and the amount tendered. My program only works with whole numbers any suggestions?