Answer:

If the comment is correct, then the program has a bug since in the PRINT statement the two numbers are multiplied, not added.

A Story Problem

Here is the corrected program:

' Computing 23.8 and 5.2
PRINT "The sum is", 23.8 + 5.2
END

Often the numbers in a computer program are the values of things in real life. For example, say that one number is "the number of hours you have worked". The other number is "the number of dollars you are paid per hour". These are very interesting numbers. The two numbers multiplied together give the number of dollars you are paid (before deductions).

QUESTION 15:

Write a QBasic program that calculates how much you are paid if you work 16 hours and your rate of pay is 7.25 dollars per hour.