small basic - worksheet 2
DESCRIPTION
ssTRANSCRIPT
Small Basic Worksheet 2Learning Objective: To understand how we interact with a computer through Small Basic. Learning Outcomes: All - To be able to run a program (Level 4).Most - To describe how we interact in Small Basic. (Level 5). Some - To investigate how we interact in Small Basic. (Level 6).
1. Write the following code in Small Basic:TextWindow.Write("Enter your name:") name = TextWindow.Read()TextWindow.WriteLine("Hello " + name)
2. Write down what the code has done in your Small Basic Worksheet.Explain why it has done this.
This has brought up a window which says Enter your nameYou can now enter your name into this box and press enter And this will bring up your name and say Hello, like this:This is because the command tells the program to do this. For example: Text window tells it to get a text window and put in enter your name.