Click to See Complete Forum and Search --> : How would one go about creating this program?


LoverboyDennis
04-06-2005, 06:57 PM
Hi, I'm very new to java and I'd like to know how to do this:

Design a web document that uses the JavaScript prompt function to ask the user for 6 negative, odd numbers and determine the total of those values. Use a WHILE loop and appropriate IF statement(s) to get these values from the user. If the user enters a valid number add that value to a variable called totalValue; otherwise keep asking for valid numbers. You should display to the screen the 6 valid values entered by the user plus the grand total of the six values.

Thanks,

Loverboy

Khalid Ali
04-06-2005, 07:00 PM
How would one go about creating this program?

for starters post it in correct forum(which is JavaScript)

LoverboyDennis
04-06-2005, 09:19 PM
sorry sir, thanks for pointing the Loverboy in the right direction :D