Lesson Plan 2: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "Lesson Plan 2 Subject: Programming in C Date: 2080/10/24 Class: BICTE Period: 2nd Semester: 1st Time: 10 minutes Topic: Conditional statement in C Specific Objectives: At the end of this topic the students will be able to: a) Understand the syntax of if statement b) Use of if statement in suitable situation Teaching Materials: Whiteboard, Marker, Computer Teaching Learning Activities: a) At first, I will revise the topic which was taught last day within one minute. b)...")
 
No edit summary
 
Line 1: Line 1:
Lesson Plan 2
'''Lesson Plan 2'''
Subject: Programming in C Date: 2080/10/24
{| class="wikitable"
Class: BICTE Period: 2nd
|Subject: Programming in C
Semester: 1st Time: 10 minutes
|Date: 2080/10/24
Topic: Conditional statement in C
|-
Specific Objectives:  
|Class: BICTE
|Period: 2<sup>nd</sup>
|-
|Semester: 1<sup>st</sup>
|Time: 10 minutes
|-
|Topic: Conditional statement in C
|
|}
 
= Specific Objectives: =
At the end of this topic the students will be able to:
At the end of this topic the students will be able to:
a) Understand the syntax of if statement
 
b) Use of if statement in suitable situation
a)   Understand the syntax of ''if'' statement
Teaching Materials:
 
b)   Use of ''if'' statement in suitable situation
 
= Teaching Materials: =
Whiteboard, Marker, Computer
Whiteboard, Marker, Computer
Teaching Learning Activities:
 
a) At first, I will revise the topic which was taught last day within one minute.
= Teaching Learning Activities: =
b) Then I will give the concept of if statement with syntax:
a)   At first, I will revise the topic which was taught last day within one minute.
Syntax: if (condition)
 
{
b)   Then I will give the concept of ''if'' statement with syntax:
Block of statement 1;
 
}
Syntax:       ''if (condition)''
else
 
{
''                   {''
Block of statement 2;
 
}
''                   Block of statement 1;''
c) I will solve the following program and make students more clear.
 
''                   }''
 
''                   else''
 
''                   {''
 
''                   Block of statement 2;''
 
''                   }''
 
c)    I will solve the following program and make students more clear.
 
Example: Write program in C that accepts any two numbers and display greater one.
Example: Write program in C that accepts any two numbers and display greater one.
#include<stdio.h>
 
#include<conio.h>
                   #include<stdio.h>
void main()
 
{
                   #include<conio.h>
int a,b;
 
printf(“Enter any two numbers:”);
                   void main()
scanf(“%d %d”,&a,&b);
 
if(a>b)
                   {
{
 
printf(“%d is greater number”,a);
                   int a,b;
}
 
else
                   printf(“Enter any two numbers:”);
{
 
printf(“%d is greater number”,b);
                   scanf(“%d %d”,&a,&b);
}
 
                   if(a>b)
 
                   {
 
                   printf(“%d is greater number”,a);
 
                   }
 
                   else
 
                   {
 
                   printf(“%d is greater number”,b);
 
                   }
 
getch();
getch();
}
 
Evaluation:
                   }
 
= Evaluation: =
In the above discussed program, what will be the output when (a>b) will be replaced by (a<b)?
In the above discussed program, what will be the output when (a>b) will be replaced by (a<b)?

Navigation menu