Answered step by step
Verified Expert Solution
Question
1 Approved Answer
proogram using C++ language. any help would be sweet Part IV: (70 pts) Submit a printout of the source code file and the screen shots
proogram using C++ language. any help would be sweet
Part IV: (70 pts) Submit a printout of the source code file and the screen shots of output. At the top of the program list your name, assignment number, and a brief description of the program. Variables should be commented as to their purpose. Major blocks of code should be commented. * . . The Caswell Catering Company has asked you to write a program to produce a customer bill. The caterer provides 3 meals: beef meal for $12.95, chicken meal for $10.95, and vegan meal for $8.95. The user is requested to enter the number of beef, chicken, and vegan meals. An 18% gratuity is added to the food cost. Caswell offers 4 banquet halls. Room 1 seats 200 and has a rental fee of $250. Room 2 seats 150 and has a rental fee of $200. Room 3 seats 100 and has a rental fee of $100. Room 4 seats 30 and has a rental fee of $50. A 6.5% state tax is added to the room cost. The program should use named constants for gratuity and state tax. Recall constants should use capital letters by convention Input: The number of beef meals, chicken meals, and vegan meals should be read from the keyboard using clear prompts. If any of the numbers are negative, display an appropriate error message about invalid data and end the meals exceeds 200, display an error message that there is no room large enough and end the program. 1, a traditional code for error program. If the total number of One way to end the program is to use the return statement with a value of ate the party and compute room Determine the smallest size room that will a cost and tax. Compute the cost of each type of meal (if ordered), food gratuity, and total bill. If a meal type is not ordered do not include it in the output. Output: Your name should be the first line of output. Produce an attractive bill similar to the sample shown that lists the total number in the party, cost of the room, room tax, number of beef meals and their total cost, number of chicken meals and their total cost, number of vegan meals and their total, gratuity, and the grand total. Field widths should be used to produce neat columns versus blanks or tabs. The precision should be set to show two places to the right of the decimalStep 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