101
edits
Entrance Announcement
MICTE 2080
2080 Magh 07
(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: | |Subject: Programming in C | ||
Semester: | |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: | |||
b) Then I will give the concept of ''if'' statement with syntax: | |||
Syntax: ''if (condition)'' | |||
'' {'' | |||
'' 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> | |||
void main() | |||
{ | |||
int a,b; | |||
printf(“Enter any two numbers:”); | |||
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)? |
edits