Problem

a. Write a class definition for an Order class for a nightclub that contains a table numbe...

a. Write a class definition for an Order class for a nightclub that contains a table number, a server’s 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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT