Semi Detailed Lesson Plan in Programming Languages
1. Semi Detailed Lesson Plan in Programming Languages
Date: September 26, 2014
Room:
Time:
I. Objectives
At the end of the lesson 85% of the students should be able to:
a. understand the uses of Basic Tools in C++.
b. make a program that shows the function of Basic Tools in C++.
c. value the Importance of knowing the syntax used in C++.
II. Subject Matter
Main Topic
“C++ Programming”
Sub-topic
VC++ Environment
Basic Tools in C++
III. Materials
Laptop, DLP, Marker, Styropor, Cartolina
References: http://www.techopedia.com/
http://msdn.microsoft.com/
IV. Procedure
A. Preparation
1. Opening prayer to be led by a Student
2. Greet the students and ask to arrange their chair before sitting
3. Ask the Class secretary for the Attendance
B. Motivation
Game Called “Picture Puzzle” that will reveal the lesson for the day.
C. Lesson Proper
1. Raise-Up Question
Ask 3 students on what they want to know or to earn about the topic that
will be answered after the discussion.
2. Technical Terms
2. OOP – Object Oriented Programming refers to a programming
methodology based on objects, instead of just functions and
procedures.
Class - an extensible program-code-template for creating objects and
implementations of behavior
Event - an action or occurrence detected by the program that may be
handled by the program.
Semicolon (;) – called as terminators or closing tag.
Syntax - the combinations of symbols that are considered to be a
correctly structured document or fragment in that language.
3. Discussion
C++ is an object oriented programming (OOP) language, developed by
Bjarne Stroustrup, and is an extension of C language.
Initially, the language was called 'C with classes’ as it had all properties of C
language with an additional concept of 'classes’. However, it was renamed to
C++ in 1983.
C++ includes several operators such as comparison, arithmetic, bit
manipulation, logical operators etc. One of the most attractive features of C++
is that it enables the overloading of certain operators such as addi tion.
Environment of VC++
Solution Explorer – Used to manage solution or project item and
browse through your codes.
Toolbox - displays icon for controls and other item that you can add to
visual studio project
Property Window – to view and change the design-time properties
and events of selected objects that are located in editors and
designers.
Output Window - displays status messages for various features in
the integrated development environment (IDE.
Error Window - Display the errors, warnings, and messages produced
as you edit and compile code.
Standard Toolbar - Contains buttons that are shortcuts to some
commonly used menu items.
Menu Bar - a user interface element that contains selectable
commands and options for a specific program.
Form Designer - Allows you to add controls to a form, arrange them,
and write code for their events.
3. There are basic tool that are usually seen in a simple program namely the
Label, Button, TextBox and Message Box.
Label is used to name a specific field or to become the Data itself.
Button refers to any graphical control element that provides the user a
simple way to trigger an event, to interact with dialog boxes, like
confirming an action.
TextBox, text field or text entry box is a graphical control element
intended to enable the user to input text information to be used by the
program.
MessageBox is a predefined dialog box that displays application-related
information to the user. Message boxes are also used to
request information from the user.
D. Activity
Direction : Make a program that uses Label, Textbox, Button and
MessageBox by following the Step by step procedure.
3 students per computer unit.
Procedure.
Step1. Create a New Project
Step 2. Click Other Language and choose Visual C++
Step 3. Click Windows Form Application and Write your Computer Unit
Number as your project’s name
.
Step 4. Add 3 Buttons, 3 Textboxes and 3 Labels.
Step 5. Click the button1 and go to the properties, go to the Text field and
rename button1into your first members Name.
Step 6. Double click button1and add the following codes:
textBox1->Text = “ ‘Address of the First Member’ ”;
label1->Text = “ ‘Age of the First Member’ ”;
Message Box::Show (“ Hi My Name is ‘Name of the First Member’, I live in”
+textBox1->Text+ “I’m”+ label1->Text+ “ Years Old.”);
Step 7, Repeat step 5-6 use button2 and label2 and write the information of
the second member. Same with the third member.
Step 8, if all 3 members are done, save your work in Removable Disk (F)
E. Generalization
4. C++ is a OOP Developed by Bjarne Stroustrup in, C++ was first named as C
with Classes however it was renamed as C++ in year 1983. It Includes
several functions like arithmetic operation, comparison and logic operation.
There are 4 basic tools used in creating a program, the Textbox, used in
inputing data, Textbox used as a trigger in a event, Label used to name or as
a data itself and a Message Box used to display information to the user.
V. Evaluation
Direction: Write the answer to the following questions on the space provided.
A. Give the Syntax of the Following;
1. Label ___________________
2. MessageBox _____________
3. Textbox _________________
B.
4. _________ is a OOP Language Developed by Bjarne Stroustrup
5. C++ was initially called _________________ before it was
renamed to C++ in 1983
Answer Key
1. Label->Text;
2. MessageBox::Show()
3. textbox->Text;
4. C++
5. C with Classes
VI. Assignment
A. Follow-up Assignment
Create a program that uses the basic tools and a messagebox with
yesno button.
B. Advance Assignment
Read about If Statement.
References: http://www.techopedia.com/
http://msdn.microsoft.com/
Prepared By:
Erman G. Silagan