User:Saroj Neupane Lesson Plan 10
Subject : Computer Science
Period: 3rd
Topic: Introduction to QBASIC
School: ABC School
Class: 7
Unit: Seven
Time: 15 min
No. of Students: 20
Specific Objectives
- By the end of the class, students will be able to create and run a simple QBasic program.
Teaching Materials
- Computers with QBasic installed (ensure QBasic is installed on the machines beforehand).
- Projector or whiteboard for demonstration.
Introduction (4 minutes)
- Start with a brief overview of what programming is and why it's important.
- Introduce QBasic as a simple and beginner-friendly programming language.
- The name QBasic is an acronym for Quick Beginners All Purpose Symbolic Instruction Code.
- It was developed and launched by Microsoft in the year 1991 and is considered to be one of the most ideal languages for absolute beginners.
- It was intended as a replacement for GW-BASIC. QBasic was based on earlier QuickBASIC 4.5 compiler.
- Explain that QBasic was commonly used for educational purposes and is great for learning the fundamentals of programming.
QBasic Basics (3 minutes)
- Open QBasic on the computer and briefly explain the interface.
- Point out the editor window for writing code.
- Highlight the immediate window for executing commands.
- Discuss the importance of syntax and structure in programming.
Hello World Program (3 minutes)
- Walk through the creation of a simple "Hello World" program.
- Type or project on the screen: PRINT "Hello, World!"
- Explain that PRINT is a command to display text on the screen.
- Emphasize the importance of quotation marks around text.
- Execute the program and show the output in the immediate window.
Variables and Input (3 minutes)
- Briefly introduce variables and user input.
- Example: CLS (to clear the screen)
- Example: INPUT "What's your name: "; UserName$ (to get user input)
- Explain the concept of variables to store and manipulate data.
Conclusion (2 minutes)
Summarize the key points:
- QBasic is a simple programming language.
- Programs consist of commands and follow a specific syntax.
- Demonstrated a basic "Hello World" program.
- Introduced the concept of variables and user input.
Evaluation
- Write the QBasic code for a simple program that displays the message "Welcome to QBasic!" on the screen.