' 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 = START TO FINISH PRINT DOL, DOL * .1, DOL * .15, DOL * .2 NEXT DOL ' END
Here is a program that is supposed to:
The output of the program might look something like this:
How many Dashes ? 12 ------------
(This is not a very practical program, but later on we will do some things with graphics that are similar to this.)
' Write a user-specified number of dashes across the screen ' PRINT "How many Dashes" INPUT _____________ ' FOR DASH = __________ TO ____________ PRINT ______ ; ' The semicolon keeps the output on one line NEXT DASH ' END
Fill in the blanks so that the program works correctly. You will need to think of a variable name to hold the number of desired dashes.