The assignment was to write a program that collects member names, restaurant names, and meal totals to track outings for a dinner club. The program should also include the ability to track attendance even if one member chose to pay for the entire meal.
The CheckSplitter class exists to calculate the meal total, including the tip, and then split that total evenly among the members who attended the outing. The DinnerClub class keeps track of member names and the outing history, as well as creating a case to allow a single member to pay for the entire meal if desired.
When CheckSplitter is initialized it requires three arguments, all of which are integer values: total_cost_of_meal, tip_percentage and num_people. Three corresponding attributes are created as well.