![]() |
User Input help
1 Attachment(s)
I'm making a self checkout machine where the user inputs prices and it comes out with a total. I'm supposed to show them this total after they enter a new value, so if they enter 20, then total price is 20 and if they enter another 20 its 40 and so on.
My problem is, my code only shows how much they entered and not the total. Code:
/* |
First, initialise your variable to zero
Code:
double runningtot = 0.00;Code:
runningtot += price;Regards, Niral Soni |
wrong forum sir, you want JAVA not JavaScript
|
| All times are GMT +1. The time now is 01:04 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.