' Make a table of squares from 0 to 25 ' PRINT "Number", "Square" ' LET START = 0 ' LET FINISH = 25 ' FOR NUM = START TO FINISH PRINT NUM, NUM * NUM NEXT NUM ' END
Now say that you want a program that computs the amount to tip on amounts from one dollar up to 30 dollars. The table will include tip percentages of 10%, 15%, and 20%. The table will look something like:
Dollars 10% tip 15% tip 20% tip 1 .1 .15 .20 2 .2 .30 .40 3 .3 .45 .60 4 .4 .60 .80 . . . 30 3.0 3.50 6.0
Here is a start on the program, with several convenient blanks:
' Make a table for 1 to 30 dollars and 10%, 15%, and 20% tips ' PRINT "Dollars", "10% tip", "15% tip", "20% tip" ' LET START = 1 ' LET FINISH = 30 ' FOR DOL = ______ TO _______ PRINT _______, _______, ________, ________ NEXT DOL ' END
Fill in the blanks to make the program work correctly.