Presentation is loading. Please wait.

Presentation is loading. Please wait.

Microsoft® Small Basic

Similar presentations


Presentation on theme: "Microsoft® Small Basic"— Presentation transcript:

1 Microsoft® Small Basic
Introduction to Small Basic Your teachers are: Miss Buchanan Miss Mayhew Miss Owen

2 Introduction to Small Basic
Learning Objective: To use Small Basic to create simple programs. Steps to Success Explore the Small Basic environment. Use IntelliSense® technology. Write a Small Basic program Save your program

3 The Small Basic Environment
Small Basic provides you with an extremely simple yet powerful development environment with features like instant context-sensitive help (intellisense). 1. You write your Small Basic programs in the Editor. 2 3 2. You run programs by clicking the Run button on the Toolbar. 1 . 3. As you write code, you can find information about commands using intellisense help, which appears as you type your code.

4 The text and graphics interfaces.
Small Basic allows you to write programs that produce results in either the text or graphics window. Depending on the commands you use Small basic will display the results in either a text or graphics window. This is text window showing the results of a program telling the computer to say Good Morning.

5 The text and graphics interfaces.
Small Basic allows you to write programs that produce results in either the text or graphics window. This is the graphics window showing the results of a program asking the turtle to move and draw a line.

6 Entering code Intellisense helps you to enter code quickly and accurately. You only have to type the first couple of letters and accept a suggestion from the list. As you start entering code, intellisense provides suggestions. Scroll through the list with the arrow keys and press Enter or Tab Once you have your main command, a list of options for that command appears on the right. Object, Action Noun Verb

7 Using further commands and options in a program.
Entering code Using further commands and options in a program. Here I started with a graphics command “Shape” and want to use the “AddRectangle” command. To use the “AddRectangle” command , the example shows that I have to add more information.

8 Now it’s your turn. Your First Program
Let’s write code to get the computer to say “It is nice to meet you.” Don’t forget to use intellisense to help you. Start with the window you want to use (text or graphics) Add the name of the object you want to use Add what you want the computer to do with the object Add the text you want to appear You can run your program either by clicking Run on the Toolbar or by pressing F5 on the keyboard. In the next lesson, you will analyze a program in detail to learn more about it. Code: TextWindow.WriteLine(“It’s nice to meet you!") Click the button on the Toolbar.

9 Now it’s your turn. Your First Program
Let’s write code to set the background to yellow and to get the turtle to draw a line 120 pixels long. Don’t forget to use intellisense to help you. Start with the window you want to use (text or graphics) Set a background colour Add the name of the object you want to use (turtle) Add what you want the computer to do with the object (move 120 pixels and draw a line) You can run your program either by clicking Run on the Toolbar or by pressing F5 on the keyboard. Code: GraphicsWindow.BackgroundColor = "yellow" Turtle.Move(120) Click the button on the Toolbar.

10 Saving Your Program After you write a program, you must save it if you want to change or run it later. To save your program, you can click Save on the Toolbar, or you can hold down the CTRL key on the keyboard while you press the “S” key.

11 Let’s Summarize… Congratulations! Now you know how to:
Explore the Small Basic environment. Write a Small Basic program. Use IntelliSense. Save your program.

12 Show What You Know Now that you know some facts about Small Basic, you can demonstrate what you’ve learned by answering the following questions: What is Small Basic? Which feature of Small Basic helps you type your program faster? How do you run your Small Basic program? Answers: A programming language. IntelliSense. By clicking Run on the Toolbar or by pressing F5 on the keyboard.


Download ppt "Microsoft® Small Basic"

Similar presentations


Ads by Google