ICT August 2024 Holiday Assignment
ICT August 2024 Holiday Assignment
computer program.
…………………………………………………………………………………………………
…………………………………………………………………………………………[2]
error.
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………..[2]
iii. Condition
…… an expression that evaluates to either true or false.
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………[2]
iv. Abstration
…………………………………………………………………………………………………
….[2]
v. Decomposition
……………………………………………………………………………………………..
simpler tasks.
…………………………………………………………………………………………………
…………………………………………………………………………………………….[2]
Section B
Question two
a) Write a program in Python that lets a user enter 5 numbers. The
program then displays the sum of these numbers and the average of
these numbers [8]
b) Draw a flow chart for the program you have written in python above.
[6]
Question 4
a) Write a program (application) in python that lets a user enter the length
and breadth of a rectangle. The program then displays the area and
perimeter of the rectangle.
[6]
b) Draw a flow chart showing all the steps required for the question i
above [6].
Section C
Question 5
A student wrote a test in three (3) subjects; English, Maths and Science.
To pass the student has to get above 140 marks in total from the three
subjects.
a) Write a program that can allow a user to enter the marks of the
student in the three subjects.
b) The program should comment if the student has passed or failed.
c) If a student’s marks is above 80, the student qualifies for an award.
[14]