Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

CSC128 Fundamentals of Computer

Problem Solving

Individual Project Proposal


Title: Spa Treatment Package System

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

2. Pseudocode and Flowcharts


2.1 List of Variables
2.2 List of Selection
2.3 List of Repetition
2.4 List of Functions 6-9
2.5 Pseudocode
2.6 Flowcharts

3. References 10

1. Project Summary

2
1.1 Project Background

 Developed in C++ programming language, Spa Treatment Package System is a web-


based project or application for online reservation spa treatment. The main objective of
this project is to create a fast, effective and reliable online working platform to develop
a communication system between customers and the agency. After the implementation of
this project, one can just made a reservation online anywhere anytime and just be ready to
come at booked time and enjoy the treatment.

 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.

1.2 Table of Project Information

‘HONEY U GLOW’ SPA PACKAGES

Type of Treatment Duration Category Cost


Packages
Blossom - Luxury Body Therapy - 1 h 30 m VIP RM 1200
- Luxury Facial - 45 m
- Foot Bath - 30 m
- Manicure + Pedicure -30 m Normal RM 1050
- Lunch
Marigold - Luxury Body Therapy - 1 h 30 m VIP RM 850
- Luxury Facial - 45 m
- Foot Bath -30 m
Normal RM 700
- Glass of Beverages

Violet - Body Therapy -1h VIP RM 1000


- Body Wax - 30 m
- Infra-Red Sauna - 1 h 15 m
Normal RM 850
Session - 40 m
- Rose-Petals Bath

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

1.3 Input & Output

Write a complete C++ program to perform each of the following:

a) Prompt the user to input the following information:


 Client’s name
 Client’s Phone Number
 Date of reservation
 Booking time
 Type of packages (using the character code, B, M, V, P or D)
 Quantity of clients

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.

c) Display the client information as shown in the following example:

4
HELLO, WELCOME TO ‘HONEY U GLOW’ SPA!

CLIENT’S NAME : Farhana


PHONE NUMBER : 013-4564589
DATE OF RESERVATION : 05/12/2016
BOOKING TIME : 10.00 am – 12.00 pm
QUANTITY OF CLIENTS : 2
CATEGORY : N
PACKAGE : P
REQUESTED INGREDIENT : Y
QUANTITY OF INGREDIENT : 1
TOTAL INGREDIENT : RM 50
PACKAGE COST : RM 1900
TOTAL PAYMENT : RM 1950

THANK YOU AND HOPE YOU WILL ENJOY YOUR TREATMENT.

d) The program should repeat the steps in (a) to (c) until the user enters ‘n’ to stop and
display summary report as below.

‘HONEY U GLOW’ SPA DAILY REPORT

Number of bill transactions :


Number of total Clients :

Total Quantity of Ingredient :


Total Ingredient Sales : RM

Total Package Net Sales : RM

THANK YOU AND HOPE YOU WILL ENJOY YOUR TREATMENT.

2. Pseudocode and Flowchart

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;

2.2 List of Selection

In this program, we used if else selection to choose package and request


ingredient.
if(category=='V' || category=='v')
{
if(spa=='B' || spa=='b')
{
package=client*1200;
}
else if(spa=='M' || spa=='m')
{
package=client*850;
}

2.3 List of Repetition

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

cout<<"\n Do you want to continue (Y/N): ";

cin>>nextBill;

}while (tolower(nextBill) !='n');

2.4 List of Functions

In this program, we used couples of function such as

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 ---------------------------------------------------------------";

cout<<"\n NAME : ";

getline(cin,userName);

cout <<"\n PHONE NUMBER : ";


getline(cin, userPhone);
cout<<"\n DATE OF RESERVATION : ";
getline(cin,userDate);
cout<<"\n BOOKING TIME : ";
getline(cin,userTime);

cout<<"\n\n";

void insert(char code);

cout<<"\n QUANTITY OF CLIENTS : ";

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

You might also like