Page 106 - Computer Genius Class 07
P. 106
Notes
The ormula to calculate distance and speed
Distance = Speed * Time
Speed = Distance/Time
Find the Electricity Bill
To create an AI Connect program to find the electricity bill, create a project. In this project create
a asic oding acti ity. Then ollo the gi en steps
ere e ollo ed the gi en conditions
l If the meter reading range is 0-100, print “free of cost” on the screen.
l If the meter reading range is 100-200, multiply the count by 5 and print the cost.
l If the meter reading range is above 200 multiply the count by 10 and print the cost.
Step 1 Create the variable “unit” and ask the user for the input.
Block Code
Textual code
Step 2 Use if statement and apply the condition value of unit greater than 0 and less than equal
to 100 using Logical and Relational Operators.
the a o e condition is satisfied Free o cost should e printed on the screen.
Block Code
Textual code
104 Computer Genius-VII

