ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Model Lesson
Computer
Class 10th
Chapter No.3
Date__24-9-2020___ Class: __10th__
Teacher Name _Mrs. Samreen Shabbir____
Subject: __Computer___
Time: __40 min__
FG Public School No. 1 (Girls), Bahawalpur
Cantt.
Topic __
OPERATORS OF C LANGUAGE
Questions for Previous
Knowledge:
? What is an input?
? What is meant by output?
? What is a computer program?
OPERATORS OF C LANGUAGE
? Expressions consist of constants and
variables combined together with
operators. An operator is a symbol used to
command the computer to perform a
certain mathematical or logical operation.
Operators are used to operate on data and
variables.
?
Types of operators
? The following types of operators are
commonly used in C language.
? Arithmetic operators
? Assignment operators
? Relational operators
? Logical operators
? Increment and decrement operators
ARITHMETIC OPERATORS
? Arithmetic operators are used to perform
arithmetic operations that include
addition, subtraction, multiplication,
division and also to find the remainder
obtained when an integer is divided by
another integer.
TYPES OF ARITHMETIC OPERATORS
Activity
Program Write a program that reads three
numbers and prints their sum, product and average.
Output
Activity
? Write a program
that reads three
numbers and prints
their sum, product
and average.
Activity
? Write a program
that reads the
length of one side
of a cube and prints
its volume.
Activity (Assessment 1)
? What will be the output of the following program?
? # include <stdio.h>
? void main(void)
? {
? int b;
? float a,c,d,e,f;
? a=14.84;
? b=7;
? c=a-b;
? printf(¡°nc=%f¡±,c);
? d=a/b;
? printf(¡°nd=%f¡±,d);
? e=a-b*3;
? printf(¡°ne=%f¡±,e);
? f=(a+b)/2;
? printf(¡°nf=%f¡±,f);
Activity (Assessment 2)
? Evaluate the following
expressions.
? a) 7+5*(3+4)
? b) 100/10/4
? c) 50%13%3
? d) 30/7*3-6
Home Work
Extensive Questions
Describe the functions of the
Arithmetic operators
Write a program that reads the
length and width
of a rectangle and prints its area.
model lesson plan class 10th computer

More Related Content

model lesson plan class 10th computer

  • 1. Model Lesson Computer Class 10th Chapter No.3 Date__24-9-2020___ Class: __10th__ Teacher Name _Mrs. Samreen Shabbir____ Subject: __Computer___ Time: __40 min__ FG Public School No. 1 (Girls), Bahawalpur Cantt.
  • 3. Questions for Previous Knowledge: ? What is an input? ? What is meant by output? ? What is a computer program?
  • 4. OPERATORS OF C LANGUAGE ? Expressions consist of constants and variables combined together with operators. An operator is a symbol used to command the computer to perform a certain mathematical or logical operation. Operators are used to operate on data and variables. ?
  • 5. Types of operators ? The following types of operators are commonly used in C language. ? Arithmetic operators ? Assignment operators ? Relational operators ? Logical operators ? Increment and decrement operators
  • 6. ARITHMETIC OPERATORS ? Arithmetic operators are used to perform arithmetic operations that include addition, subtraction, multiplication, division and also to find the remainder obtained when an integer is divided by another integer.
  • 8. Activity Program Write a program that reads three numbers and prints their sum, product and average.
  • 10. Activity ? Write a program that reads three numbers and prints their sum, product and average.
  • 11. Activity ? Write a program that reads the length of one side of a cube and prints its volume.
  • 12. Activity (Assessment 1) ? What will be the output of the following program? ? # include <stdio.h> ? void main(void) ? { ? int b; ? float a,c,d,e,f; ? a=14.84; ? b=7; ? c=a-b; ? printf(¡°nc=%f¡±,c); ? d=a/b; ? printf(¡°nd=%f¡±,d); ? e=a-b*3; ? printf(¡°ne=%f¡±,e); ? f=(a+b)/2; ? printf(¡°nf=%f¡±,f);
  • 13. Activity (Assessment 2) ? Evaluate the following expressions. ? a) 7+5*(3+4) ? b) 100/10/4 ? c) 50%13%3 ? d) 30/7*3-6
  • 14. Home Work Extensive Questions Describe the functions of the Arithmetic operators Write a program that reads the length and width of a rectangle and prints its area.