Sei sulla pagina 1di 36

Page | 1

GAMBANG WATERPARK
TICKETING SYSTEM
Page | 2

INTRODUCTION
Page | 3

INTRODUCTION OF PROJECT

SUMMARY

Assalamualaikum. We are civil engineering students from EC1102L are going


to create a program called Gambang Waterpark Ticketing System(G.W.T.S) .The
purpose of this program is to make the ticket purchase proccess more easier,
efficient, and systematics. This program also give the visitors quick access, so they
can enjoy their precious times in Bukit Gambang waterpark. We are going to apply
the lesson we study in CSC128 course into this project.

First of all, Bukit Gambang Resort City (BGRC) is an integrated resort city
sprawling across 727 acres of secondary jungle. The water park is one of the most
unique place in the BGRC. Strategically located in Gambang, Pahang, it is the
gateway to the East Coast of Peninsular Kuantan. BGRC is also nestled amongst
the many natural and cultural attractions eagerly sought for by tourists locally or from
abroad. The average of tickets sold in a year is about 898,500.

Every year especially during holiday, many of visitors and tourists will have an
memoriable holiday at Gambang Waterpark. So, there will be a lot of tickets will be
sold. The ticket price are RM 32.00 for adults) and RM 22.00 for children

Furthermore , If the visitors buy a lot of tickets with the different catagories, the
cashier will have a problem because they have to calculate it manually. This process
is slow and unsystematic. It will make the others waiting for a little longer to buy their
tickets. The ques will be long and makes it looks crowded in front of the counter.
With Gambang Waterpark Tickets System, it will help the cashier to calculate the
price amount of the tickets . This system will make the calculations better and faster.
Page | 4

Thanks to our CSC128 lecturer, Madam Rashedah who helped and guided us
while making this proposal.Our group hope that our program will help the visitors , so
they can get a great time while in Gambang Waterpark. Lastly , it great pleasure for
us to create this program.
Page | 5

OBJECTIVE
Page | 6

OBJECTIVE

Our program objectives that is to make the ticket purchase more easy and
efficient .We hoping that with our programmed, we could give benefits to all
people.Our main objective are shown as below:

1. To calculate the price amount of tickets with the amount of tickets faster and
accurately.

2. To helps the cashier make the calculations of the price amount easy and
quickly.

3. To make sure that the tourists and visitors buy their tickets easily and without
waiting any longer

4. To print out the program for the waterpark ticketing system

5. To record payment for each visitor

.
Page | 7

ANALYSIS
Page | 8

ANALYSIS
CoPS METHOD
Output Input Process
Output Input variables: Processing items:
variables:
Amount Of Total price
Total Tickets Quantity
Tickets Catagories Balance
Payme
nt

Formulae:

Totalprice=(children*22.00)+(adult*32.00)
Quantity=children+adult
Balance=amountofmoney-totalprice

Constants:
Steps / Solution algorithm:
Price Per
Get Input (from Keyboard)
Category :
- Adult = RM Calculate quantity
32 Calculate price
- Child = RM Calculate balance
22 Display output
Page | 9

PSEUDOCODE
AND
FLOWCHART
P a g e | 10

PSEUDOCODE

Problem
Begin
1. Get Input
Adult, children, amountofmoney

2. Calculate Price
totalprice=(children*22.00)+(adult*32.00)

3. Calculate Quantity
quantity=adult+children

4. Calculate Balance
balance=amountofmoney-totalprice

5. Display Output
Totalprice, quantity, balance, totalsales

End
P a g e | 11

FLOWCHART

Start

displayOutput calcBalance

Choice== Y

getInput calcPrice calcQuantity

TotalSales

End
P a g e | 12

SUB MODULE

Get Input

Start

Children, adult

End
P a g e | 13

SUB MODULE

Calculate price

Start

Total price

End

SUB MODULE
P a g e | 14

Calculate quantity

Start

Quantity

End

SUB MODULE

Calculate balance

Start
P a g e | 15

Balance

End

SUB MODULE

Get Input

Start
P a g e | 16

Quantity, total price, balance

End

LIST OF
FUNCTION
P a g e | 17

Function not return value without parameter


P a g e | 18

This statement is not return value without parameter. This function will receive
the input from the user.

Function return value without parameter

This statement is return value without parameter. This function does not
receive any values from the calling function but it will return a value. This
funtion will calculate the total price of tickets.

Function return value without parameter

This statement is return value without parameter. This function does not
receive any values from the calling function but it will return a value. This
funtion will calculate the total price of tickets.
P a g e | 19

Function return value with parameter

With this type of function, balance are passed to the called function through
parameters and one value is passed back to the calling function (function
call).

Function not return value with parameter

This statement is not return value without parameter. This function will display
the quantity, totalprice and balance. This funtion also is as receipt to the
customer.
P a g e | 20

SO
UR
CE
CO
DE
P a g e | 21

#include <iostream.h>
#include <conio.h>

int adult, children;

void getInput(); //funtion prototype


float calcPrice(); //funtion prototype
int calcQuantity(); //funtion prototype
float calcBalance(float,float); //funtion prototype
void displayOutput(int,float,float); //funtion prototype

void getInput() //get input from user


{
cout<<"\nEnter your amount of children : ";
cin>>children;
P a g e | 22

cout<<"Enter your amount of adult : ";


cin>>adult;
}

float calcPrice() //caculate price based on user's input


{
float totalprice;
totalprice=(children*22.00)+(adult*32.00);
return totalprice;
}

int calcQuantity() //calculate ticket quntity that user buy


{
int quantity;
quantity=adult+children;
return quantity;
}

float calcBalance(float totalprice, float amountofmoney) // calculate the user money balance
{
float balance;
balance=amountofmoney-totalprice;
return balance;
}

void displayOutput(int quantity, float totalprice, float balance) //display the user receipt
{
cout<<"\n-----------------------RECEIPT--------------------------"<<endl;
cout<<"\n********************************************************"<<endl;
cout<<endl;
cout<<endl;
cout<<"AMOUNT OF TICKETS :\t TOTAL PRICE RM :\t BALANCE RM : "<<endl;
cout<<"-----------------\t --------------\t\t ----------"<<endl;
cout<<endl;
cout<<"\t"<<quantity<<"\t\t\t"<<totalprice<<"\t\t\t"<<balance<<endl;
cout<<endl;
cout<<"-------------------------THANK YOU-----------------------"<<endl;
P a g e | 23

void main ()
{
char choice='Y';
int amountofmoney, totquantity;
float totprice,totbalance, totalsales=0;

while (choice=='Y'||choice=='y')
{
cout<<"\n************************************************************"<<endl;
cout<<"\n\t\tWelcome to Gambang Waterpark."<<endl;
cout<<"\n************************************************************"<<endl;
cout<<"\nPrice for Adult is RM32.00."<<endl;
cout<<"Price for Children is RM22.00."<<endl;

getInput(); //funtion call

totprice=calcPrice(); //function call


totquantity=calcQuantity(); //function call

cout<<"\nYour total tickets is : "<<totquantity<<endl;


cout<<"Your total payment is RM: "<<totprice<<endl;

cout<<"\nEnter your money RM: "; //user enter the amount of their money
cin>>amountofmoney;

totbalance=calcBalance(totprice, amountofmoney); //function call

cout<<"\nYour balance is RM :"<<totbalance<<endl;

displayOutput(totquantity, totprice, totbalance); //funtion call

cout<<"\nDo you want to continue ? Y/N ?"; //user will choose either to use again or not
cin>>choice;

clrscr();
P a g e | 24

totalsales+=totprice; //calculate the sales collection of the day

}
cout<<endl;
cout<<endl;
cout<<"\nYour total sales for today is RM: "<<totalsales;
getch ();
}

TESTING
OUTPUT
P a g e | 25
P a g e | 26
P a g e | 27
P a g e | 28
P a g e | 29
P a g e | 30
P a g e | 31
P a g e | 32
P a g e | 33
P a g e | 34
P a g e | 35
P a g e | 36

Potrebbero piacerti anche