Question: I need this done is C++ language, in one program Program #2: You are to are to create a program, using separate compilation, for a

I need this done is C++ language, in one program
I need this done is C++ language, in one program Program #2:
You are to are to create a program, using separate compilation, for

Program #2: You are to are to create a program, using separate compilation, for a student choosing a sport and/or clubs to join. A student may only choose one sport but can choose to dubs You will need to create a Sport class, a Club class and a Student Activites class Information regarding each class is as follows: Sport Class: This class contains private data for sport name and fee. A non-default constructor ONLY that requires both attributes. You must create accessors and mutators for every attribute. Club Class This class contains private data for the club name and the meeting day of the week. Include a default constructor that initializes the name of the club to "NONE" and the meeting day to ". Include a non-default constructor that requires both attributes. You must create accessors and mutators for every attribute. Student Activity Class This class contains private data for student idle.g. 11223), student name, one student Sport object, two student Club objects, and the total amount due for sports/clubs. You must include only ONE non-default constructor that requires all of the attributes/objects. Additionally, your class must contain a function that will calculate the total due. This function will first add any sport fee to the total due. You will add a $55.50 fee for the first club and a $35.50 fee for the second club. Your function will use a conditional operator to determine whether to add a fee or to add to the fee. You will need to do this for both clubs. Lastly, your class must contain another function to display the activities. This function will display the student id, student name, the sport the student has chosen, any of the clubs the student has joined and the total due. If the student has not chosen to play a sport, this function will simply state that fact (see sample run #2) main() Function: Your main() function will ask the user for their full name and their student ID. Next, you will ask them if they would like to register for a sport. If they say yes, you will then call a non-member function that will determine the sport. The details for this function are listed below. Next, you will ask the user if they would like to join a club. If they say yes, you will then call a non-member function that will determine what club. Only if they have chosen to join a club will you then ask if they would like to join another. If they say yes, you will call the same non-member function to determine what club. (The details for this function are listed below). Your main() function must check to see if the two clubs meet on the same day. If they do, you must tell them that they can not join two clubs meeting on the same day and allow them to replace the first or the second club, using your function to determine the club. Even if they replace a club, you should still continue to check until the two clubs do not meet on the same day (See sample output #2). Once you have all the data, your main() function will create a StudentActivity object. You will then call the objects functions to calculate the total due and display the students activites Alt Gr M Verbatim Function to determine the sport: This function will initialize two parallel vectors. one for the names of the sport and one for the athletic fee. The sports and their corresponding fees are as follows: Baseball $525.00 Football $610.00 Soccer $450.00 Swimming $375.00 Your function will use a for loop to display the sports and their fees. You must display using 2 decimal points. Ask the user to choose. No data validation is necessary! Both the name and the fee must be returned back to the main using references. Function to determine the club: This function will initialize two parallel vectors, one for the names of the clubs, and one for the day that they meet. The clubs and their corresponding day are as follows: Anime Wednesday Aviation Wednesday Chess Thursday CyberPatriot Monday Thursday Engineering Monday Entrepreneurship Programming Tuesday Robotics Your function will use a for loop to display the clubs and their meeting day, Friday Ask the user to choose. No data validation is necessary! Your function will then create a Club object which is then to be returned. Sample Output #1: Welcome to Student Activities! Please enter your full name: John Bender Please enter your student id: 2468 ould you like to register for a sport Y/N Y Program #2: You are to are to create a program, using separate compilation, for a student choosing a sport and/or clubs to join. A student may only choose one sport but can choose to dubs You will need to create a Sport class, a Club class and a Student Activites class Information regarding each class is as follows: Sport Class: This class contains private data for sport name and fee. A non-default constructor ONLY that requires both attributes. You must create accessors and mutators for every attribute. Club Class This class contains private data for the club name and the meeting day of the week. Include a default constructor that initializes the name of the club to "NONE" and the meeting day to ". Include a non-default constructor that requires both attributes. You must create accessors and mutators for every attribute. Student Activity Class This class contains private data for student idle.g. 11223), student name, one student Sport object, two student Club objects, and the total amount due for sports/clubs. You must include only ONE non-default constructor that requires all of the attributes/objects. Additionally, your class must contain a function that will calculate the total due. This function will first add any sport fee to the total due. You will add a $55.50 fee for the first club and a $35.50 fee for the second club. Your function will use a conditional operator to determine whether to add a fee or to add to the fee. You will need to do this for both clubs. Lastly, your class must contain another function to display the activities. This function will display the student id, student name, the sport the student has chosen, any of the clubs the student has joined and the total due. If the student has not chosen to play a sport, this function will simply state that fact (see sample run #2) main() Function: Your main() function will ask the user for their full name and their student ID. Next, you will ask them if they would like to register for a sport. If they say yes, you will then call a non-member function that will determine the sport. The details for this function are listed below. Next, you will ask the user if they would like to join a club. If they say yes, you will then call a non-member function that will determine what club. Only if they have chosen to join a club will you then ask if they would like to join another. If they say yes, you will call the same non-member function to determine what club. (The details for this function are listed below). Your main() function must check to see if the two clubs meet on the same day. If they do, you must tell them that they can not join two clubs meeting on the same day and allow them to replace the first or the second club, using your function to determine the club. Even if they replace a club, you should still continue to check until the two clubs do not meet on the same day (See sample output #2). Once you have all the data, your main() function will create a StudentActivity object. You will then call the objects functions to calculate the total due and display the students activites Alt Gr M Verbatim Function to determine the sport: This function will initialize two parallel vectors. one for the names of the sport and one for the athletic fee. The sports and their corresponding fees are as follows: Baseball $525.00 Football $610.00 Soccer $450.00 Swimming $375.00 Your function will use a for loop to display the sports and their fees. You must display using 2 decimal points. Ask the user to choose. No data validation is necessary! Both the name and the fee must be returned back to the main using references. Function to determine the club: This function will initialize two parallel vectors, one for the names of the clubs, and one for the day that they meet. The clubs and their corresponding day are as follows: Anime Wednesday Aviation Wednesday Chess Thursday CyberPatriot Monday Thursday Engineering Monday Entrepreneurship Programming Tuesday Robotics Your function will use a for loop to display the clubs and their meeting day, Friday Ask the user to choose. No data validation is necessary! Your function will then create a Club object which is then to be returned. Sample Output #1: Welcome to Student Activities! Please enter your full name: John Bender Please enter your student id: 2468 ould you like to register for a sport Y/N Y

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!