You must follow the style guide for all projects.
The manager of a private club's golf course is having some trouble understanding his customer attendance. The manager's objective is to optimize staff availability by trying to predict when members will play golf. To accomplish that he needs to understand the reason members decide to play and if there is any explanation for that. He assumes that weather must be an important underlying factor, so he decides to use the weather forecast and record whether or not members play golf under certain weather conditions. Over the next two weeks he keeps records of:
The outlook: whether it was sunny, overcast or raining.
The temperature in farenheit.
Whether or not members played golf on that day.
When the manager observed the data, he saw these results:
25% of members play golf when the weather is sunny.
12% of members play when the weather is overcast
3% of members play when it's raining.
No one plays golf when the temperature is below 32 degrees farenheit.
Create a class that will hold the following data for the current day (3 points):
the number of active club members
the weather outlook (sunny, overcast or rain). Hint: You can ask the user to enter 1 for sunny, 2 for overcast and 3 for rain if you want to store this in an integer variable.
One function of the class should handle data input. The values for this data for the day should be entered by the user and stored in private data members of your class (3 points).
Depending on the values that are stored, another function of the class should calculate the total number of golf club members that are expected to play today and store that total in a private data member (4 points).
Another function of the class should handle data output. This function should display the private data member that holds that total (3 points).
Create a client program (with main function) in a separate .cpp file to run the functions of your class (3 points).
Follow style guidelines (3 points).
In addition to the requirements for this project, add the following conditions that effect customer attendance.
Note: The requirements listed below are entirely optional. You will not lose points if you do not implement them. These requirements are designed to make the project more challenging for those who are interested and are not required.
Given the attendance data indicated earlier, whether it is sunny or overcast, if the wind speed is equal to or greater than 20 mph, attendance drops by an additional 2%.
Given the attendance data indicated earlier, whether it is sunny or overcast, if the temperature is 90 degrees or higher and the relative humidity is greater than 52%, attendance drops by an additional 6%.