Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I AM IN NEED OF THE FOLLOWING RAPTOR FLOWCHART IMAGE FOR THE PROBLEM BELOW... ***The following steps are all part of one Raptor program*** Use

I AM IN NEED OF THE FOLLOWING RAPTOR FLOWCHART IMAGE FOR THE PROBLEM BELOW... ***The following steps are all part of one Raptor program*** 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 number greater than 0 for the number of checks. You need to continue asking for a valid number of checks until valid number is entered.

CIT-129 Chapter 5 Repetition Structures Page 2 b) For each check, in the following order, ask for the name of the server, the dollar amount of the check, the number of patrons for the check and the day of the week (Monday, etc.). c) If the number of patrons is 8 or less, the tip is 15% of the check amount. If the number of patrons is more than 8, the tip is 18% of the check amount. If the day of the week is Tuesday, apply a 10% discount on the total amount of the check (after the tip and tax). You can assume that the day of the week is always entered in lower case except for the first letter. Assume the tax rate is 8.5%. For each check, display the Server name, check amount, number of patrons, day of the week, tax amount, tip amount, check total amount before discount, check total amount with discount and a message indicating if a discount was applied. d) Calculate and display the grand total of all checks. e) Calculate and display the grand total of all discount amounts. Display the following information in a format very close to the sample run. For example, you need to display the prompts and outputs as stated below. You DO NOT need to print the prompts in the Master Console. Sample run: Number of checks/bills: -1 ERROR try again, Number of checks/bills: 0 ERROR try again, Number of checks/bills: 2 Server Name: Jill Amount of check: $90 Number of Patrons: 5 Day of the week: Wednesday Tax Amount: $7.65 Tip Amount: $13.5 Total Amount before any discount: $111.15 Total Amount: $111.15 Have a Good Day! A discount was not applied Server Name: Bob Amount of check: $200 Number of Patrons: 10 Day of the week: Tuesday Tax Amount: $17 Tip Amount: $36 Total Amount before any discount: $253 Total Amount: $227.7 Have a Good Day! A discount was applied Grand Total of all checks = $338.85 Total discount applied = $25.3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions