Question: 5. a. Write a class definition for an Order class for a nightclub that contains a table number, a servers name, and the number of
5. a. Write a class definition for an Order class for a nightclub that contains a table number, a servers name, and the number of patrons at the table. Include a private static data member for the table minimum charge, which is $4.75. Write a main()function that declares no Order objects, but that uses a static member function to display the table minimum charge. Save the file as Order.cpp
b. Using the same Order class, write a main()function that declares an Order object, assigns appropriate values, and displays the Order data, including the minimum charge for the table (the minimum charge times the number of patrons at the table). Save the file as Order2.cpp.
Any coding assignments will have to be submitted in .cpp format and a Word document with the code copy/pasted and screenshots of the output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
