Practical 2
ICT DEPARTMENT
TVET CURRICULUM DEVELOPMENT, ASSESSMENT AND CERTIFICATION
COUNCIL (TVET CDACC)
Qualification Code : 061306T4C'SC
Level : Computer Science Level 6
Unit of Competency : Understand Fundamentals of Programming
UNIT CODE : ICT/CS/CR/04/6/A
Candidate’s name:
Candidate’s Registration No.:
Assessors name
Unit(s) of Competency:
Venue of Assessment:
Date of assessment:
PRACTICAL ASSESSMENT II
INSTRUCTIONS TO CANDIDATE
i. You have ONE HOURS to attempt all the questions.
TASK TWO: Develop a Java program (25 Marks)
Makini primary school has hired you as their software developer. You are required to write a
Java program that grades student’s marks. The program should prompt the user to enter marks
for five subjects, compute the average, and then grade based on the criteria in the table below.
Table 1:
Marks Grade
0-39 E
40-59 D
60-69 C
70-79 B
80 and above A
(Award mark(s) appropriately as guided for in the items for evaluation indicated. Give a brief
comment where necessary)
Practical 2
Items to be evaluated:
TASK 1: Develop a C program Marks Marks Comments
Available Obtaine
d
i. Opened the C program (Award 1 mark) 1
ii. Included the header file (Award 1 mark) 2
iii. Included the main function body (Award 1 mark) 1
iv. Declared the variables (Award 1 mark) 1
v. Input marks for 5 subjects (Award 2 marks) 2
vi. Calculated the average (Award 2 marks) 2
vii. Output the average (Award 1 mark) 1
viii. Used decision control structure (i.e., else..if, case or switch) 10
to determine and display the grade (Award 5×2 marks)
ix. Included the Return statement (Award 1 mark) 1
x. Compiled the program (Award 2 marks) 2
xi. Run the compiled program (Award 2 marks) 2
Sub-total 25
ASSESSMENT OUTCOMES
Practical 2
The candidate was found to be:
☐ Competent
☐ Not yet competent
(Please tick as appropriate)
(The candidate is competent if s/he gets 50% or higher)
Feedback from candidate: ______
Feedback to the candidate: ______
Candidate’s signature: Date:
Assessor’s signature: Date: