CSC128 Fundamentals of Computer Problem Solving: Title
CSC128 Fundamentals of Computer Problem Solving: Title
Problem Solving
Student ID:
Name:
Group
Date Submitted: 2 0 2 0
1
Table of Content Pages
1. Project Summary
1.1 Project Background
1.2 Table of Project Information 3-5
1.3 Input & Output
3. References 10
1. Project Summary
2
1.1 Project Background
The proposed C++ project on spa management is a solution to the existing problems
regarding spa packages. It assists in promotion of packages by providing information
regarding different treatment based on each packages, duration and special request from
the costumers. This project is beneficial for both spa management and the customers in
many ways.
The data embedded in the system includes: user code, categories, total purchasers and the
total cost. The client can purchase the packages as preferred on the site. User must
conclude the input such as name, date of reservation and booking time. For the coding
output, information such as numbers of purchasers, and the total tickets price will be
collected. The amount of sales of the day will also be calculated.
3
Peony - Facial EB Machine - 1 h 30 m VIP RM 1100
(V-shape, Lifting,
Treatment) - 30 m
- Facial Massage - 30 m Normal RM 950
- Face Mask - 45 m
- Eyebrow & Eyelashes
Tint
Daisy - Body Massage - 1 h 15 m VIP RM 875
- Jacuzzi Refreshment -1h
- Reflexology - 45 m
Normal RM 725
Table 1
The program should display appropriate message if the user has entered an invalid package
code.
b) If the client requested to add special ingredient during treatment, prompt the user to
input the following information:
Request ingredient (yes or no)
Insert ingredient (ex: Organic Mud Clay, Green Tea Clay, Coffee Wrap,
Chocolate Wrap)
RM 50 is added up for each requested ingredient. Otherwise, the package cost remains the
same. Then, calculate the total payment for each user and the grand total for all users.
4
HELLO, WELCOME TO ‘HONEY U GLOW’ SPA!
d) The program should repeat the steps in (a) to (c) until the user enters ‘n’ to stop and
display summary report as below.
5
2.1 List of variables
int client,numIngredient,numBill,ingCost;
double package,totalIng,totalPayment,netPrice,sum;
char spa,code,category,nextBill='Y';
string userName,userDate,userTime,userPhone;
The program should repeat the steps in (a) to (c) until the user enters ‘n’ to
stop. In this program, we use do…while repetition.
do
cin>>nextBill;
6
void welcome();
void ingredient(int,double);
void insert(char);
double grandTotal(double,double,double,double);
void end(int,int,int,int,double);
int main ()
{
2.5 Pseudocode
1. Begin
2. Declare variables
int client,numIngredient,numBill,ingCost;
double package,totalIng,totalPayment,netPrice,sum;
char spa,code,category,nextBill='Y';
string userName,userDate,userTime,userPhone;
3. Get input
cout<<"\n ---------------------------------------------------------------";
cout<<"\n HELLO, WELCOME TO 'HONEY U GLOW' SPA!
";
cout<<"\n ---------------------------------------------------------------";
getline(cin,userName);
cout<<"\n\n";
cin>>client;
cout<<"\n CATEGORY (V/N) : ";
cin>>category;
7
cout<<"\n PACKAGE(B,M,V,P or D): ";
cin>>spa;
4. Calculate
double grandTotal(double package,double totalIng,double sum,double
totalPayment);
cout<<"\n\n";
cout<<"\n 'HONEY U GLOW' SPA ";
cout<<"\n ---------------------------------------------------------------";
cout<<"\n RECEIPT ";
cout<<"\n ---------------------------------------------------------------";
cout<<"\n NAME : "<<userName<<endl;
cout<<"\n PHONE NUMBER : "<<userPhone<<endl<<endl;
cout<<"\n QUANTITY OF CLIENTS : "<<client<<endl;
cout<<"\n PACKAGE COST : RM "<<package<<endl;
cout<<"\n INGREDIENT COST : RM "<<totalIng<<endl;;
totalPayment=package+totalIng;
cout<<"\n TOTAL PAYMENT : RM
"<<package+totalIng;sum=sum+totalPayment;
cout<<"\n\n ";
5. Display output
End
2.6 Flowchart
8
3. References
9
https://nevonprojects.com/
https://www.codewithc.com/c-projects-with-source-code/
https://www.academia.edu/30685973/A_PROJECT_PRESENTATION_ON_ON
LINE_MOVIE_TICKET_BOOKING_SYSTEM_Internal_Guide_By
10