Page 73 - CG_v2.1_flipBooks_class_6
P. 73
Solution:
Program Start
Read marks for subject Num1 (a)
Read marks for subject Num2 (b)
Read marks for subject Num3 (c)
Calculate Sum (S) = a+b+c
Calculate AverageMarks (A) = S/3
If (AverageMarks > 60)
Print (‘Above Average marks’)
Else
Print (‘Below Average marks’)
Program End
Let's REFRESH
l Coding, also referred to as programming, is the process of creating step-by-step instructions for
computers using programming languages.
l Syntax is the set of rules for writing a programming language.
l An algorithm is the step-by-step plan to solve a problem for a given problem statement.
l A flowchart is a diagrammatic representation of a step-by-step plan which is followed to solve a problem.
l A pseudocode is used to describe the steps followed in an algorithm via simple human comprehensible
language.
Exercise
A. Tick ( ) the correct option.
1. Coding is also known as _______________
(i) Machine Learning (ii) Programming
(iii) Gaming (iv) Writing
2. Which of these are the examples of programming in real life?
(i) Scanning QR Codes (ii) Booking online tickets
(iii) Computer Software (iv) All of these
B. Fill in the blanks using the words given below.
Language Sequence Algorithm Syntax
1. _______________ is defined as the step-by-step plan to solve the problem for a given problem
statement.
2. _______________ represents linear tasks in pseudocode.
3. _______________ is the set of rules for writing a programming language.
4. The primary means of communication for all human interactions is _______________.
Algorithm and Pseudocode 71

