0% found this document useful (0 votes)
85 views

CSC126 Individual Assignment 20232

This document provides instructions for an individual assignment in CSC126 Fundamentals of Algorithms & Computer Problem Solving. It consists of two programming questions to be completed in C++. The first question involves writing a program to calculate the cost of wallpaper for a bedroom. The second question involves writing a program for a babysitting service that calculates the total price for a booking based on membership status and hours booked, using provided price tables. The assignment is due on June 14th, 2023 before 5:00 PM and must be submitted in PDF format, including source code and output, with the student's name and ID. Collaboration is forbidden and late or plagiarized submissions will be penalized.

Uploaded by

shanbin663
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views

CSC126 Individual Assignment 20232

This document provides instructions for an individual assignment in CSC126 Fundamentals of Algorithms & Computer Problem Solving. It consists of two programming questions to be completed in C++. The first question involves writing a program to calculate the cost of wallpaper for a bedroom. The second question involves writing a program for a babysitting service that calculates the total price for a booking based on membership status and hours booked, using provided price tables. The assignment is due on June 14th, 2023 before 5:00 PM and must be submitted in PDF format, including source code and output, with the student's name and ID. Collaboration is forbidden and late or plagiarized submissions will be penalized.

Uploaded by

shanbin663
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

CSC126 – FUNDAMENTALS OF ALGORITHMS & COMPUTER PROBLEM SOLVING

INDIVIDUAL ASSIGNMENT

This assignment is designed to attain the followings:

Course Learning Outcomes:


CLO2 Display practical skills in algorithm and computer program development.

Due date : 14 JUNE 2023, FRIDAY before 5:00 PM.

Weightage : 25 % of the overall assessment.

Environment : You are required to do this assignment in a C++ environment as specified


for
each component.

Instructions
 Your code must have a comment header consisting of the following:
/*
Name : Your full name
Sid : Your student number
Course : CSC126
Group :
Due Date : 14 June 2023 5:00 pm
Question No :
Program Description :
*/

 You are required to submit documentation in the form of a softcopy (PDF and .cpp) which
consists of:
o cover page
o source code
o output screenshot

 Please save your assignment in PDF format and rename it as:


YourStudentID_GroupClass_Assignment.pdf

 You are required to submit your softcopy in UFUTURE.

 Students are allowed to refer to any materials (lecture notes, internet, books, source code
examples).
 Cheating is forbidden. Discussion with friends is considered cheating. Should you have
any questions, please ask your lecturer.

 If your answer is found similar to other students' answers, your lecturer deserves the right
to penalize your work. E.g., if you and the other three students have similar answers,
each of you receives 20 marks. 20 marks will be divided by 4, so each of you receives 5
marks.

 Please consult your lecturer(s) if you face any problems.

 Late submission and plagiarism will be penalized.


UNIVERSITI TEKNOLOGI MARA
PERAK BRANCH, TAPAH CAMPUS
35400 Tapah Road

College of Computing, Informatics and Media

Fundamentals of Algorithms & Computer Problem


Solving
(CSC126)

INDIVIDUAL ASSIGNMENT
(Assessment 2)

Prepared By : Student Name Student ID


Group
Prepared For: Lecturer’s name

Deadline: 14 June 2023, 5:00 PM


QUESTION 1
Mr Rayyan wants to replace the wallpaper in his bedroom with the new ones. As a
programmer, you have been asked to write a program to calculate the cost he will have to
pay. First, you need to determine the number of rolls for the bedroom. The size of the
wallpaper is 5.0 meters per roll. For that, you must calculate the area of the walls in the
bedroom (assume the bedroom has four walls with the same height and width) and the area
of a door he does not wish to cover. Then, calculate the total cost (including labour) that Mr
Rayyan needs to pay. The cost of wallpaper is RM100.00 per roll and the cost of labour is
RM10.00 per roll. Your program should display the number of wallpaper rolls and the total
cost he will have to pay.
i. Draw a flowchart based on the above problem statement.
ii. Write a complete C++ program based on your flowchart.

QUESTION 2
Bloom & Care is a babysitting service based in the Selangor area. During the International
Children’s Celebration Day on 20th Nov 2021, they will give a discount to all the customers
that made a booking on that day or for any coming dates. The payment will be charged
based on the membership status and total hours booked. Details of the charge for members
and non-members are shown in Table 2. An extra 5% discount will be given to all registered
members of Bloom & Care babysitting services.

Table 2: Bloom & Care Babysitting Services Price (2021)

As a programmer, you are required to write a complete C++ program that will solve the
following problems:
 Ask the user to enter membership status (M for member, N for non-member) as input.
 If the users enter ‘M’, your program then asks the user to enter the package code and
number of hours they will book the services.
 If the users enter ‘N’, your program then asks the user to enter the package code and
the number of hours they will book the services.
 Based on the user’s membership status, calculate, and display the total price charged
for each booking made. The charge is calculated based on the details in Table 2 and the
extra discount for each member.
 Display an appropriate message if the user enters an ‘Invalid type of package
or package code’.

END OF QUESTION PAPER

You might also like