0% found this document useful (0 votes)
389 views1 page

Small Basic - Worksheet 2

This Small Basic worksheet teaches students how to interact with a computer through a Small Basic program. The program prompts the user to enter their name, stores the input as a variable, and prints a greeting using the stored name. This allows students to understand how Small Basic code can display text, accept user input, and manipulate that input to produce output.

Uploaded by

MentalismStuff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
389 views1 page

Small Basic - Worksheet 2

This Small Basic worksheet teaches students how to interact with a computer through a Small Basic program. The program prompts the user to enter their name, stores the input as a variable, and prints a greeting using the stored name. This allows students to understand how Small Basic code can display text, accept user input, and manipulate that input to produce output.

Uploaded by

MentalismStuff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Small Basic Worksheet 2

Learning 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 name


You 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.

You might also like