You are on page 1of 2

Start

Display menu
Read selection
If (selection == 1)
display register new customer
char name
int ic_num
int phone_num
output"Enter your name"
Input name
output"Enter your IC number"
input ic_num
output"Enter your number phone"
input phone_num
else if (selection == 2)
display register new membership
char name
int phone_num
int year
int fees
output"Enter your name"
input name
output"Enter your number phone"
input phone_num
output"Yearly fees RM 10"
output"Years"
input years
fees=year*10;

else if (selection == 3 )
display category of ticket
char category
int quantity
int price
output"A:Adult ticket RM6"
output"B:Children ticket RM4"
output"C:Combo ticket (2Adult, 3Children) RM22"
output"Enter your category of ticket "
input category
output"Enter your quantity "
input quantity
if(category=='A'||category=='a')
price=quantity*6
else if(category=='B'||category=='b')
price=quantity*4
else if(category=='C'||category=='c')
price=quantity*22

else if (selection == 4)
display payment
if (payment==1)
output"your payment is successful"
else if (payment==2)
output"enter your pin "
input pin
output "your payment is successful"
end if

prompt user to enter answer (Y-yes / N-No ) to continue


Read answer
if (answer == ‘Y’ ll answer == ‘y’ )
system will be repeated
else if ( answer == N ll answer == ‘n’ )
display THANKYOU .. HAVE A NICE DAY

end

You might also like