I NEED HELP with writing an IF then else statement

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.
Minimum Requirements

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 use an integer variable to store this.
the temperature
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
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
Another function of the class should handle data output. This function should display the private data member that holds that total
Create a client program (with main function) in a separate .cpp file to run the functions of your class
This is a specification for an entire program. What part of it are you having trouble with?
Show us your code then I'll help.
wow dude you're just blatantly asking us to do your hw for you...

after just skimming through it, the logic for this is pretty basic, pretty sure if you spent time working on it instead of running to the forums you'd get pretty far
Give me a mil and I'll do it.
Sorry I'm new to this form and only meant to ask for help with the if then else statement. I'm working on the code right now and will upload what i have shortly. I'm having a hard time with creating the if then else statement for when the temperature is below 32 degrees but I'll upload what i have shortly. Thanks for the help.
It's cool, tomtom. We can help you much faster if you let us know exactly what troubles you're having :)

And ignore das2 and all the derivative accounts. Just trolling us.
if (temp < 32) ?? haha im sure its more complicated than this
Maybe OP is having trouble with the structure of if statements or checking a bunch of conditions in one statement?
Topic archived. No new replies allowed.