' Improved 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 "The tip is:", TIP PRINT "Please pay:", TOTAL + TAX + TIP END
The addition of a new PRINT
statement
makes the output more informative.
Say that the amount of sales tax is always 5% of the
total before tax.
The program could be improved by asking
the user for just one value and using
just one INPUT
statement.
If the program has just one INPUT
statement,
what value will be input?