Thread: Calculate electric bill
Results 1 to 2 of 2
01-14-2003, 11:41 AM #1
Any know this...
I need help to do the following:
OK - I want to implement a document that will allow me to calculate my electricity bill.
I want it to supply two input areas allowing the original and new reading to be entered. When the Calculate button is pressed it should make sure that there are numeric values in each field and that the value in the second field is greater than the value in the first field. If there are any problems I want to be informed via an alert dialog. When the inputs are shown to be acceptable the bill should be calculated and presented as a service charge of £15.00 plus £0.10 per unit.
I already tried to do this but I can really do with some help...thanx in advance
01-14-2003, 01:52 PM #2
Heres a link to the JS manual for the Math object -
Post it when you are done, we would be interested to see your results.
And of course, post any questions you may hev along the way. Good luck!If one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?