Page 68 - PlugGPT_V2.0_C7_Flipbook
P. 68
Look at these examples:
Example 1:
Example 2:
READ Subject
READ marks
IF Subject = "Maths" THEN
IF marks > 50 THEN
PRINT "Take out Maths book & notebook"
PRINT "Pass"
ELSE
ELSE
PRINT "Check timetable"
PRINT "Fail"
Example 3: Example 4:
READ Rain READ age
IF Rain = True THEN IF age >= 18 THEN
PRINT "Carry an umbrella" PRINT “You are eligible to vote.”
ELSE ELSE
PRINT "Do not carry an umbrella" PRINT “You are not eligible to vote.”
Restart
An algorithm is a set of step-by-step instructions in a sequential manner to solve a
problem.
The raw data is collected, filtered, sorted, processed, analysed, stored, and then presented
in a readable format, called information.
Conditional statements are used in a program to instruct the computer to make a
decision.
Checkpoint
A. Tick ( ) the correct option.
1. What is a flowchart?
a. A type of computer virus
b. A type of computer
c. A pictorial representation of an algorithm
d. A type of computer processor
2. Which of the following languages can a computer understand?
a. Binary language b. High level language
c. English language d. Hindi language
66 Premium Edition-VII

