User:Bishu User:Bishu Thapa/micro teaching 5

From ICTED-WIKI
Jump to navigation Jump to search

Subject: C programing

Period: first

Topic: introduction of programing language

Teaching Item: If else statement

Class: BICT 1st semester

Unit: One

Time: 15 min

No. of Students: 10

Objectives

At the end of this lesson, students will be able to

  1. To define If else statement with Example.
  2. To Print a basic If else statement in turboo C++

Teaching Materials

  • PowerPoint presentation
  • Daily materials
  • Turboo c++ installed computers

Teaching Learning Activities

  1. Introduce today's topic with students.
  2. Revise necessary topics required to learn previous topics.
  3. I will explain the If else statement.
  4. I will demonstrate basic if else statement in Turboo c++
    1. #include<stdio.h>    
    2. int main(){    
    3. int number=0;    
    4. printf("Enter a number:");    
    5. scanf("%d",&number);    
    6. if(number%2==0){    
    7. printf("%d is even number",number);    
    8. }    
    9. return 0;  
    10. }   

add example here

Classroom Assessment

  1. Write a program to check positive number using if else statement .