Answer:


' Cost of electricity
'
PRINT "Enter number of kilowatt-hours" 
INPUT KWH

PRINT "Enter dollars per kilowatt-hour"
INPUT RATE

PRINT "Cost in dollars:", KWH * RATE
END

More Mistakes

A program executes statements one at a time in sequence. If an INPUT statement is waiting for you to type a number, no other statement will execute until this has happened.

Say that the above program is running, and that you have correctly typed in the first number but have incorrectly typed in the second number, as below:

Enter number of kilowatt-hours
? 1294
Enter dollars per kilowatt-hour
? $0.096480

Redo from start
? _

The second number is incorrect because the "$" can not be part of a number.

QUESTION 14:

What should the user type now so that the program will continue?