ZHSS 2019 P2
ZHSS 2019 P2
COMPUTING 7155/02
Paper 2 (Lab Based) 4 September 2019
2 hours 30 minutes
Additional Materials: Instruction Set
Write your index number and name on all the work you hand in.
Write in dark blue or black pen on both sides of the paper.
You may use a pencil for any diagrams or graphs.
Do not use staples, paper clips, glue or correction fluid.
At the end of the presentation, fasten all your work securely together.
The number of marks is given in brackets [ ] at the end of each question or part question.
This question paper consists of 7 printed pages including this cover page.
Task 1
A Server Farm Service uses spreadsheet software to calculate the cost of the
service for each customer. The Server Farm has five classes of server type
and offers half service and full service. You are required to finish setting up
the spreadsheet to calculate the cost of each service.
1 In cell C20 enter a formula to count the number of half service [1]
servers that have been booked.
2 In cell C21 enter a formula to count the number of full service [1]
servers that have been booked.
3 Use an appropriate function to search for the Cost per Server [2]
class in the Server Class table, and use it to complete the Cost
column. The cost must take into consideration the Number of
Units each customer will use.
6 In cell H20 enter a formula to calculate the average total cost of all [2]
the services, rounded to the nearest dollar($).
2
Task 2
(b) Print out the highest temperature reading as well as the [2]
average temperature reading.
(c) Test if the temperature reading is between -4 and 55, if not, [3]
ask the user for input again as necessary.
3
Task 3
The following program is a Body Mass Index (BMI) Calculator that prints a
medical advisory depending on the BMI value.
The program prints out the BMI value and the medical advisory.
# Calculate BMI
# Formula to calculate BMI is: BMI = Weight (kg) / squared(Height (m))
index = Null
index = 1
4
elif bmi < 23:
index = 2
index = 2
index = 3
10 Identify and correct the errors in the program so that it works [10]
according to the rules given.
5
Task 4
6
13 Save your program as MULTIPLY0212_<your name>_<index
number>.py
Extend your program such that at the end of the quiz set, after the [4]
final score is printed, the player will receive feedback lines for each
of the attempts. For example (A quiz set on the 4 (four) times table):
End of Paper