Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are to write a C++ program that will calculate the amount owed from customer

ID: 3657676 • Letter: Y

Question

You are to write a C++ program that will calculate the amount owed from customers at tables in a restaurant. For each table, the program will ask how many people are at the table. The program will ask the user for the price of each meal purchased at the table (you may assume that each person orders 1 all inclusive meal). The program will produce a bill showing the subtotal, the sales tax, the tip and the final total for the bill. Make sure all output is neat, clear, and is clearly money. The program will continue processing tables until the number of the people at the table is 0. Sales tax is calculated on the subtotal and is 6%. The tip is also calculated on the subtotal. The tip is 18% if the number of people at the table is less than 5. The tip is 20% if the number of people at the table is 5 or more. When you run the program to hand in use the following data:

Explanation / Answer

#include #include using namespace std; class table{ int people; double *baseBill; double subtotal; double tip; double salesTax; public: table(); ~table(); //sets how many people are at table void setPeople(int ppl); void orderBill(); //These are called by orderBill void calcSubTotal(); void calcFees(); //accessors double getSubTotal(); double getTip(); double getTax(); double getTotal(); void printBill(int); }; int main(){ table RoomA[100];//Room A only has 100 tables :3 int tblSeated=0; int guest; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote