Sample solution algorithm to determine meal charges
Then, the algorithm will calculate the amount of a tip, a 7% sales tax, and the total meal charge. The food purchase, sales tax, tip amount, and total meal charge will need to be displayed to the customer.