0% found this document useful (0 votes)
21 views10 pages

ICT August 2024 Holiday Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views10 pages

ICT August 2024 Holiday Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 10

BANANI INTERNATIONAL SECONDARY SCHOOL

AUGUST 2024 HOLIDAY ASSIGNMENT


CANDIDATE
NAME

TOTAL MARKS OBTAINED [%]

Stage 2: Programming for a Purpose 4293


DUE DATE 28 th AUGUST 2024
50 MARKS
Additional materials: Integrated Development Environment IDE
Flowcharting software (optional)

READ THESE INSTRUCTIONS FIRST

Write your name on all the work you hand in.


Paste your work on the spaces or boxes provided.
Section A
Question 1
Define the following terms according to your own understanding in
programming
i.Variable
…………………………………………………………………………………………………

… used to store information to be referenced and manipulated in a

computer program.
…………………………………………………………………………………………………

…………………………………………………………………………………………[2]

ii. Data type


… the type of value a variable has and what type of mathematical,

relational or logical operations can be applied without causing an

error.
…………………………………………………………………………………………………

…………………………………………………………………………………………………

…………………………………………………………………………………………..[2]

iii. Condition
…… an expression that evaluates to either true or false.

…………………………………………………………………………………………………

…………………………………………………………………………………………………

…………………………………………………………………………………………[2]

iv. Abstration

…the process of removing elements of a code or program that aren't

relevant or that distract from more important elements.


…………………………………………………………………………………………..
…………………………………………………………………………………………………

…………………………………………………………………………………………………

….[2]

v. Decomposition
……………………………………………………………………………………………..

………break down large problems like this into several smaller,

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]

You might also like