Question: To accurately solve this, you must include creating the main ( ) and several classes: Match, Person, Player, Coach, and Date. Additionally, there will be
To accurately solve this, you must include creating the main and several classes: Match, Person, Player, Coach, and Date. Additionally, there will be header and implementation files for each class, as well as a main.cpp file I need a really good answer so please take your time with this to accurately complete it with the necessary implementation, functions, and error checking. The instructions below checklist should be used too :
C PRogramming: INHERITANCE AND OPERATOR OVERLOADING ASSIGNMENT INSTRUCTIONS
OVERVIEW
The objective of this assignment is to demonstrate the ability to implement inheritance, composition, and overloaded operators in a program. This program leverages many of the concepts you have learned in this class and combines them into a professionalstyle program.
There are some helpful links at the bottom of the instructions.
Reminder: When you pass a Class object, pass it as a pointer.
Tip: One of the students' most common problems with this Lab is mixing up the #include statements. This generates several different types of errors, all of which are timeconsuming to track down.
Most common error situation: If you include file in your main and file includes file your main also has access to file through the #include of file
The diagram below shows the relationships between the Classes for Lab Note: The Date Class is not shown on this diagram as it is given to you below. The Date Class will link into the Person, Player, Coach, and Match Classes. However, as you can see above, you only need to #include it in the Person Class, which will then flow up as each Class above #includes the Class below it
For the diagram below, you will need the #include statements shown after the diagram..
NOTE: You can choose to copypaste the items below, but you will not learn the 'why'. Take the time and look at the list and compare it to the diagram.
PlayerIn the file that contains main #include Matchh:In Match.h#include "Coach.h;#include "Player.h;In Match.cpp#include Matchh;In Player.h#include "Person.h:In Player.cppMatchPersonCoach#include Playerh;In Coach.h#include Person.h:In Coach.cpp#include "Coach.h;In Person.h#include Date.h; This is a Classgiven to you in the instructions below.In Person.cpp#include "Person.h
INSTRUCTIONS
The Liberty University athletic department has requested the ability to create a list of starting players and positions for the next Volleyball match. This process involves creating a match with the team's name, the location of the match, the opposing team's name, and the match date, followed by the assignment of one coach and three players for this match.
Classes are getting to be more realistic with each programming assignment. This assignment includes the valuable aspect of inheritance to facilitate the reuse of code and operator overloading to allow the usage of familiar operators tailored specifically to the Person, Player, Coach, and Match classes. Composition is also demonstrated in using a Match class that contains objects of the Player and Coach classes. The Player and Coach Class will each inherit from the Person Class.
Ask the professor questions early if you need help with the assignment.
You will need to create several classes to maintain this information:
Match, Person, Player, Coach, and Date.
The data elements of Player and Coach are shown below:
Player:
Last Name string
First Name string
Birthdate Date
Jersey Number string
Years Played int
Graduation Date Date
Position stringie Setter, Hitter, Blocker, etc.
Average points per game double
SkillLevel stringIntermediate Advanced
Coach:
Last Name string
First Name string
Birthdate Date
Jersey Number string
Title string
Hired Date Date
Annual Salary double
Years Coached int
Note: The common data members will be placed in the Person class, which will be inherited by the Player and Coach classes.
Note: While the derived classes share the inherited data members in the base class, they do not have to have the same type or number of additional data members. This is normal and common.
Note: Several of the data members above require the use of dates. Strings are not acceptable substitutes for date fields.
C does not have a builtin data type for Date. Use the provided Date Class below for your Lab, as its correct use is part of the grading criteria. Cite your source. Tip: Practice with this in a separate program.
Note: Below are two blocks of code. The first is for the Date.h file, and the second is for the Date.cpp file.
Note: Do not attempt to pass a Date object around. To use this Class, you must use its setDate function. There are issues with passing Class objects that you have not yet learned about.
Date class:
private:int day:intmonth;int vear;publiC:Date :Da
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
