Tip and GST Calculator Raptor Flowchart
Raptor flowchart for Tip and GST Calculator program.
Problem Statement
Raptor flowchart that will calculate the Tip% and 18% GST on a restaurant meal price. The user will enter the price and the flowchart will calculate
- Tip
- GST and
- Total restaurant Bill.
The Total restaurant Bill = meal price + Tip + GST.
The flowchart should display the Tip amount, GST, and Total. The tip percent should be as per the chart:
Meal Price Tip Percent
< 50 10%
> = 50 15%
Raptor Flowchart
Initialize all the variables that are required in the flowchart.
Tip Logic
Use a selection symbol to decide on the tip percentage.
Output the calculated amounts like tip, GST, total bill.
Flowchart Output
A sample run of the flow chart.
Welcome to GST Calculator Program
Meal Price = $50
Tip = $7.5000
GST = $9
Total Bill = $66.5000
—-Run complete. 18 symbols evaluated.—-
Further enhancements
#1
Make the flowchart modular. Use modules like takeInput, SetTipPercentage, Output module etc.
#2
As you can see in the output, the tip amount and bill amount are displayed up to 4 significant decimal places.
Total Bill = $66.5000
Can we round the amount to 2 significant decimal places? Left as an exercise for the reader.