PBA in Tle Flowchart
PBA in Tle Flowchart
Void welcome()
int input
char character
character
case ‘Y’ ||
case ‘y’ A
case ‘N’ ||
case ‘n’
“Goodbye! Have a
nice day!”
B
“You’ve entered a
default
wrong input”
A
Void menu()
“Set A to D”
goto
choose
“What do you like? Choose a set: “
choice
Switch (choice)
F
If(pay>=(set1* “Your payment is
Pay quantity)) not enough”
receipt C
F
If(pay>=(set2* “Your payment is
Pay quantity)) not enough”
T
“Your balance is:
Balance=pay-(set2*quantity)
Php”
receipt C
F
If(pay>=(set3* “Your payment is
Pay quantity)) not enough”
receipt C
F
If(pay>=(set4* “Your payment is
Pay quantity)) not enough”
receipt C
C
Void inmenu()
Int input
“Menu:
1. Order again
2. Exit
Enter choice:”
input
Switch (input)
case 1 A
+ --------------------------------------- +
case 2 | Thank you! Please come again |
+ --------------------------------------- +
B
Stop