0% found this document useful (0 votes)
540 views5 pages

Flowchart Cinema Kiosk

The document outlines the process for booking movie tickets and purchasing food/drinks. It includes steps to input movie details, number of people, seats, date and time of showing. It then calculates the ticket price, applies any family packages or discounts, and allows the customer to purchase food/drinks. Finally, it processes the payment, prints tickets if payment is sufficient, and provides a balance or error message.

Uploaded by

ris
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
540 views5 pages

Flowchart Cinema Kiosk

The document outlines the process for booking movie tickets and purchasing food/drinks. It includes steps to input movie details, number of people, seats, date and time of showing. It then calculates the ticket price, applies any family packages or discounts, and allows the customer to purchase food/drinks. Finally, it processes the payment, prints tickets if payment is sufficient, and provides a balance or error message.

Uploaded by

ris
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

START

Display "Enter the


Display "Enter the name number of people
of the movie you would getFamilyPack
like to watch: "
watching the movie: " If (numPeople >= 10) Yes age()

Input
numPeople MoviePrice =
Input Movie MoviePrice -
No getFamilyPackage()

Read numPeople
Read Movie Totalprice =
Read MoviePrice MoviePrice *
numPeople

Display
"Enter
Display number of
"Enter the seat:"
Display
date of the "Total : RM ",
showing: " Totalprice

Input Seat

Input Date
getFoodDrink()

Read Seat

Read Date
getDiscount()

Display
"Enter the Totalprice =
time of the Totalprice -
showing: " getDiscount()

Input Time Display


"Total : RM ",
Totalprice

Read Time
getPayment()

END
getFoodDrink()

Display "Do
you want to
purchase any
food/drink?
[Y/N]: "

Input choice

Display
"Enter the
While (choice ==
'Y'||choice == 'y') Yes name of
food/drink
item: "

No
Input
foodDrink
Display
"Total : RM ",
Totalprice

Read foodDrink

return
Get foodDrinkPrice

Display
"Number of
set : "

Input
numFoodDri
nk

Totalprice +=
numFoodDrink *
foodDrinkPrice

Display "Do
you want to
purchase
more food?
[Y/N]: "

Input
choice
getFamilyPackage()

Display "Family
Package are avaible!"

Display "Do you


want to take this
package?
[Y/N]"

Input
familyPackage

familyPackage =='Y' || familyDiscount =


familyPackage=='y' Yes MoviePrice*0.15

No

familyPackage=='N' ||
familyPackage=='n' Yes familyDiscount = 0

No

Return
getDiscount()

Display "Do you have


a membership [Y/N]"

Input membership

membership=='Y' || membership=='N' ||
membership=='y' No membership=='n' No

Yes Yes
Display "Do
Display "Enter you have a
membership ID" promo code
[Y/N]"

Input
Input promoCode
membership_ID

Validate promoCode =='Y' || promoCode =='N' ||


promoCode ==''y' No promoCode ==''n'
membership_ID

Yes
Yes
Yes membership_ID == true No Display "Enter the
promo code :"

Display discount =0
discount =
"Membership
Totalprice*0.2
ID not valid"
Input code

discount = 0
Read code

discount =
code == true Yes Totalprice*0.05

No

Display "The
promo code
is invalid

discount =0

No

return
getPayment()

Display
"Payment"

Display "Total :
RM",Totalprice

Display "Insert
payment : RM"

Input
payment

payment >= balance = payment -


Totalprice Yes Totalprice

No
Display Display "Balance
"Insufficient : RM ", balance
amount. Please
try again."

Display "Transaction
successful! Here are
your tickets and food/
drink items."

Print ticket

return

You might also like