Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Raptor for the following problem helping a local restaurant in their check processing. We like to process a set of restaurant checks/bills. a) Ask
Use Raptor for the following problem helping a local restaurant in their check processing. We like to process a set of restaurant checks/bills. a) Ask for the number of checks. Make sure the user inputs a positive number more than 0 for the number of checks. You need to continue asking for a valid number of checks until valid data is entered. b) For each check, in the following order, ask for the name of the server, the amount of check, the number of patrons for the check and the day of the week (Wednesday, etc.). c) If the number of patrons is 8 or less, tip is 15% of the check. If the number of patrons is more than 8, tip is 18% of the check. If the day of the week is Friday, apply a 10% discount to the grand total amount of the check. You can assume that the day of the week is always entered in lower case. Assume the tax rate is 8.5%. Note that the tip and the tax are calculated based on the original bill amount . d) Calculate and display the grand total of all checks. e) Calculate and display the grand total of all discount amounts
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started