Professional Documents
Culture Documents
Flowchart Cinema Kiosk
Flowchart Cinema Kiosk
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()
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!"
Input
familyPackage
No
familyPackage=='N' ||
familyPackage=='n' Yes familyDiscount = 0
No
Return
getDiscount()
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
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
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