Basic 9 Mr. Husch
Objective Understand how to comment and write functions. Create functions in BASIC
What we know Input data Display with print Store data with strings and variables Control program with if…then and goto
What is new?
Len() The Len() function is a command that gives the number of characters in a string. We can also have functions loop information.
An example of looping
What did that program do? What numbers did it display and why?
Commenting: Use rem
Rem If you use rem on a separate line it can remind you what the program was supposed to do there. Your assignment is to write a program that will loop numbers 1-100 and put a reminder in it. Then you need to go back to your previous assignments and add reminder tags to them as well.
End of Lesson 9 Turn in the program, LASTNAME_100.BAS