SESSION : SESI 1 2021/2022
DEPARTMENT : JTMK
ASSESSMENT : PROBLEM BASED TASK 2
CODE COURSE: DFC 20113
COURSE NAME: PROGRAMMING FUNDAMENTALS
PROGRAMME: DDT SEMESTER : 1/2/3/4/5/6
DATE : TIME : 9.5 HOUR
INSTRUCTION TO CANDIDATES:
1. Do NOT open until you are allowed to do so.
2. This paper contains:
1 questions- Answer All
NAME : MUHAMMAD AIMAN BIN ZAMRI
REG. NO : 19DDT20F2017
PROGRAMME : DDT-DIPLOMA TEKNOLOGI MAKLUMAT
LECTURER : EN AZRIN AZLI BIN SUHAIMI
This paper contains 5 printed pages (including the front page)
Prepared by: Verified by:
(Lecturer) (Head of Department/Head of Programme /
SITI ZAHARAH BINTI SIDEK Course Coordinator)
Pensyarah DH 44
Jabatan Teknologi Maklumat dan
Date: Komunikasi Politeknik Muadzam Shah
Date:
31/12/2021
31/12/2021
Instruction:
Create a program to count mark and grade using function approach. The program
must complete these rules:
a) Function 1 – receive 5 student’s name from user : use array to keep the
student’s name
b) Function 2 – receive mark from user (in array) for quiz, assignment and test
Mark for quiz is range from [ 0-30]
Mark for assignment is range from[0-30]
Mark for Test is range from[0-40]
d) Function 3 – Count the total of marks(quiz+assignment+test). The function
should return the total value.
e) Function 4– Function will receive the total of mark and assign the grade for it.
80 -100 A
60-79 B
40-59 C
0-49 FAILED
f) Function 5 – Show the name of student, subject, total of mark and grade
obtained.
g) main() function - call all the functions.
Submit:
Softcopy report including (Program Code, Output and Rubric Grading) and file .cpp
through Ms Team.
Date of Submission:
5 Jan 2022 (before 5.00 PM)
Coding
Output
Rubric Scheme
Code and Course Name : DFC20113 Programming Fundamentals
Type of Assessment : Problem Based Task 2
Learning Outcome : Construct function inside a C++ program.
Unacceptable Marginal Good Excellent
Topic Marks
(Mark = 0-1) (Mark = 2-3) (Mark =4) (Mark = 5)
Disorganized Organized work. Organized work. Creatively organized
Poor use of variables Good use of variables Good use of variables work.
Coding Standard names (ambiguous names (unambiguous (unambiguous naming) Excellent use of variables
naming). naming). names (unambiguous
naming).
The code is poorly The code is readable The code is fairly easy to The code is exceptionally
Readability organized and very only by someone who read. well organized and very
difficult to read. knows what it is easy to follow.
supposed to be doing.
Does not execute due to Executes with some Executes without errors. Executes without errors
errors. errors. User prompts are Excellent user prompts,
Runtime User prompts are User prompts contain understandable, good use of symbols,
misleading or non- little information, poor minimum use of symbols spacing in output.
existent. design. or spacing in output. Through and organized
No testing has been Some testing has been Thorough testing has testing has been
completed. completed. been completed completed
A difficult solution. A logical solution Able to create 3 or 4 Able to create all
Consist of main function Partially using function functions effectively in a functions effectively in a
only. Able to create 1 or 2 program program
Efficiency
Unable to create functions effectively in Fits a reasonable length Fits a reasonable length
another function in a a program of code of code
program Easy to maintain
TOTAL