Computer Science I (CS 170)
Dr. William J. Joel, WS 110, 7-9353
Project No. 2 (7 points)

Problem: To create a program that will allow a waiter/waitress to print out a check for a customer at a restaurant.
Task:
  • Review how to define a class and declare variables as objects of a given class.
  • Create a "check" class (cCheck).
    Include member variables for name and cost of: appetizer, salad (w/dressing), main course, dessert and beverage.
    Include member functions for setting each item, calculating a subtotal, calculating a tax, calculating a total, printing the check, and governing the entire process.
  • Create a program using this class to demonstrate it's implementation.
  • Submit your assignment according to Project Submission Guidelines.
Notes:
  • You do not actually need to print a check; displaying it on the screen is sufficient.
  • Remember! Be sure you've completed this project as described above. If you wish to do more, you will neither receive extra points if you succeed, nor lose points if you you are unsuccessful, but you will receive feedback when the project is graded.