Computer Science Canada Cashier Program Help |
Author: | Azzy [ Tue Sep 21, 2004 3:56 pm ] | ||
Post subject: | Cashier Program Help | ||
I'm making this cashier program in java, my first actual program, and instead of printing the right values, it keeps printing the price as 49. If anyone can help, I appreciate it.
|
Author: | Andy [ Tue Sep 21, 2004 4:26 pm ] |
Post subject: | |
just a thought... u didnt calculate the pst/gst/total price |
Author: | wtd [ Tue Sep 21, 2004 8:14 pm ] | ||
Post subject: | |||
|
Author: | Andy [ Tue Sep 21, 2004 8:18 pm ] |
Post subject: | |
ha, wtd, i doubt he under stands throws and catches |
Author: | wtd [ Tue Sep 21, 2004 8:19 pm ] | ||
Post subject: | |||
I didn't introduce anything in terms of exceptions that wasn't already in his original code. Though now I have. I declared that a NumberFormatException might be thron by the calls to Double.parseDouble.
|