Answer:

? 0.096480

The dollar sign "$" was not typed this time so the program can input the number and continue:

? 0.096480
Cost in dollars:      124.8451

Restaurant Calculator

Here is a longer program. It asks the user for the total restaurant bill before tax. Then it asks for the amount of tax. Finally it calculates and prints the amount of money to pay including a 15% tip. The tip is calculated on the total before tax.


' Restaurant Bill calculator
'
PRINT "Enter the total before tax:"
INPUT TOTAL

PRINT "Enter the amount of tax:"
INPUT TAX

LET TIP = TOTAL * 0.15
PRINT "Please pay:", TOTAL + TAX + TIP
END

QUESTION 15:

Modify the program so that it writes out the amount of the TIP in addition to writing the total amount to pay.