Question: CIT-129 Introduction to Programming Assignment Chapter 5 - Total Points = 100 points You will use the Raptor flowcharting tool for this assignment. **Make sure
CIT-129 Introduction to Programming Assignment Chapter 5 - Total Points = 100 points You will use the Raptor flowcharting tool for this assignment. **Make sure you are in the Object Oriented mode when using Raptor. This is a pulldown tab at the top under Mode. **** Objective: Use the repetition control structure to write code in Raptor to process checks at a local restaurant. The assignment also covers writing a pseudocode for this problem. Assignment: Part 1 The pseudocode will be written in a Document file (Word, WordPad, etc.). Write a pseudocode for the following problem before you write your Raptor code. Remember, your pseudocode must match your final Raptor program. This means you may need to go back and modify the pseudocode to reflect changes made in the final program. We do check this. Part 2 ***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. Discussion: I am also asking for code documentation. Your program must contain several comments at key steps of the program and a header comment block at the top of the program with the following information: Your name: Course number and course section: Date of completion: The time it took you to complete this exercise: Log your time from the time you start this exercise till completion. For example, you could write 1 hour of 30 minutes, 90 minutes, etc. Brief explanation of the program: In Raptor, you right click any component such as Start, Input, etc. and select Comment. All comment lines will be color-coded. Dont worry about the formatting of the output with a set number of digits after the decimal point. Your numbers may have small rounding error differences from the sample run. 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. Make sure you fully test your program. As a minimum, you should check your program against the sample run inputs. Submitting your assignment:
CIT-129 Chapter 5 Repetition Structures Page 3 Submit both your Raptor program file (.rap) and your document file for your pseudocode. Use the file format: firstNameLastNameCIT129_CH5.rap for your Raptor file name. Use the file format: firstNameLastNameCIT129_CH5.docx for your pseudocode document file name. Submit your file to the assignment drop box in Canvas. The following is a sample run of the code. Your processing must match the sample run. 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
To help you with this assignment Ill provide the pseudocode and steps to guide ... View full answer
Get step-by-step solutions from verified subject matter experts
