(CSC126) Assignment 3
(CSC126) Assignment 3
SOLVING
ASSIGNMENT 3
INDIVIDUAL ASSIGNMENT
(5%)
QUESTION 1
Sparkle Run Kuala Lumpur is going to be held in the next coming holiday season. The
following table shows the details:
Others USD15
In order to run the program smoothly, the organizer is hiring you as a programmer to develop
a computer program. In developing the program, you should consider each of the following:
The user’s name, citizen, the number for each category, and distance should be
entered following the respective INPUT statements. The program will repeat until the
system administrator input is “N” or “n”.
Calculate the total payment for each user and the grand total for all users.
[Note: USD 1 = RM4]
Count the number of adults and kids involved in the whole program.
Write a pseudocode and complete C++ program for each user generate a receipt
using the format in the following example:
Given the following data has been collected from 70 respondents on their perception about the
customer service at the counter. The respondent will give a score from 1 to 5 only. The score 1
represents the worst service, while the score 5 represents excellent service.
4 3 5 4 3 2 3 4 3 4
3 4 3 2 2 2 1 2 3 2
4 3 3 4 5 4 3 3 3 4
4 3 4 3 3 3 2 2 2 2
3 3 3 3 3 2 3 2 3 2
2 2 2 1 1 1 2 3 5 1
5 4 3 4 3 3 3 3 3 4
You are required to write a pseudocode and complete C++ program to display the following
output:
Average score is ?.
Overall result is ?.
SUBMISSION GUIDELINE
1. Student need to choose ONE (1) out of two questions given. For the selected question, student need to
provide:
a. Algorithm design: Pseudocode
b. Complete C++ program
c. Sample output
2. Format : Hardcopy
a. Front page cover : LIGHT BLUE (KCS1101M), YELLOW (KCS110N)
(Format page cover as given)