This week you will start on an NFL Football Team Program. For starters, you will create...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
This week you will start on an NFL Football Team Program. For starters, you will create an abstract base class called player. This will have attributes of name and playerID (number), methods getName and getPlayerID, and abstract methods getPlayerPosition, play, and toString (which returns a string with the player name, number, position, etc.) You will create subclasses (all of which extend from player) for Offense QuarterBack Wide Receiver o Tight End Running Back o Offensive Lineman Defense o Defensive Lineman o Linebacker o Defensive Back Special Teams Kicker • Holder Punter Returner (Kick, Punt) Create a menu driven program that will allow the user to add players to a team (use only one data structure to hold your players). Add at least one player from each category to your order and then print out the list of players on a team (name, number, position, description, etc.). Display the number of players on the team. You will be expanding on your project in future sessions by adding an enumeration type for Offensive and Defensive Linemen, Defensive Backs, etc. C++ This week you will start on an NFL Football Team Program. For starters, you will create an abstract base class called player. This will have attributes of name and playerID (number), methods getName and getPlayerID, and abstract methods getPlayerPosition, play, and toString (which returns a string with the player name, number, position, etc.) You will create subclasses (all of which extend from player) for Offense QuarterBack Wide Receiver o Tight End Running Back o Offensive Lineman Defense o Defensive Lineman o Linebacker o Defensive Back Special Teams Kicker • Holder Punter Returner (Kick, Punt) Create a menu driven program that will allow the user to add players to a team (use only one data structure to hold your players). Add at least one player from each category to your order and then print out the list of players on a team (name, number, position, description, etc.). Display the number of players on the team. You will be expanding on your project in future sessions by adding an enumeration type for Offensive and Defensive Linemen, Defensive Backs, etc. C++
Expert Answer:
Answer rating: 100% (QA)
include include include using namespace std class Player int playerlD string name public Playerint playerlD string name string getName int getPlayerlD abstract methods virtual string getPlayerPosition 0 pure virtual function virtual void play 0 pure virtual function virtual string toString constructor PlayerPlayerint playerlD string name playerlDplayerlD namename return name of the player string PlayergetName return name return player id int PlayergetPlayerlD return playerlD return description of player string PlayertoString return ID tostringplayerlD Name name class Offense public Player ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
This needs to be done in PowerShell. A. create 2 new unix users (your choice of UID) wolverine & sparty B. Create 2 new groups (your choice of GUID) maize & green C. Assign the users their...
-
Describe what needs to be done to manage risk on a project. When should this be done? How can a risk assessment matrix help in this process?
-
Discuss what needs to be done as part of terminating a project. Why are these activities important?
-
Describe the three cases to consider when determining if a cost allocation is beneficial.
-
Briefly describe the attribution theory of charismatic leadership.
-
Calculate the following: a. The current market conversion price for the Sands convertible bond. b. The expected one-year rate of return for the Sands convertible bond. c. The expected one-year rate...
-
Pick a product like Cadillac or Sara Lee Deli products or service like Mr. Clean Performance Car Wash or a car and home insurance company that is offered in a limited number of countries. Assess the...
-
Following are transactions and events of the General Fund of the City of Springfield for the fiscal year ended December 31, 2012. 1. Estimated revenues (legally budgeted) Property taxes .........
-
You ask your sister to look up the stock prices of two different companies: Carnival Cruise Lines (CCL) and, the world's largest toilet paper producer, Procter & Gamble (PG). How have the stock...
-
Comprehensive Problem 1 - Part 1: Taxpayer information, Form 1040, Schedules 1, 2, 3 and 4, Schedule A, and Schedule B. Noah and Joan Arc's Tax Return Note: This problem is divided into three parts....
-
Normalize the given table of company data into 1st Normal Form, 2nd Normal Form and 3rd Normal Form. The table shows information about Projects, Employees and Departments: P_ID P_Name P_Saving E_ID...
-
In what ways do social institutions such as family, education, and religion contribute to the maintenance of social order and stability?
-
Give some examples of controlled verses uncontrolled delays. Considering the role of ATC and the IOC in mitigating these delays to enhance air traffic efficiency, do you think the FAA's NextGen...
-
Which statement accurately describes the implications of investing in a stock with a positively skewed distribution, as projected by the company's analysis?
-
? For example, suppose a user wants to update the price of a product in the "Products" table. Using DML, they can write a command like: UPDATE Products SET Price = 29.99 WHERE ID = 1; What are some...
-
Brown, Inc., a builder, has a material-handling department which has studied its cost for the past year and has determined the following Month January February March April Activity Level (pellets...
-
nts) Let x be any fixed real number with |x| < 1. Show that n=1 x (1-x) Consider the Cauchy product of 0x" with itself.)
-
Controls can be identified based on their function. The functions are preventive, detective, and corrective. A. True B. False
-
Describe what the project manager should do to perform the planning function. Give some specific examples.
-
Using the figure in question 11, perform resource-limited scheduling. Assume that you have only three workers available at any given time. What is the new completion date for the project?
-
Assume that an activity has a normal time of 20 weeks, a normal cost of $72,000, a crash time of 16 weeks, and a crash cost of $100,000. By how many weeks, at most, can this activitys duration be...
-
Powerhouse Ltd purchased machinery on 2 January 2019, at a cost of $800 000. The machinery is depreciated using the straightline method over a useful life of 8 years with a residual value of $80 000....
-
The purchases and sales of Big Flower Pty Ltd of one brand of lawn fertiliser for the year ended 31 December 2019 are contained in the schedule below. The selling price up to 30 June was $12 per unit...
-
In groups of four or five, consider the following information. On 1 July 2019, Stevenson Pty Ltd, a proprietary company with three shareholders, acquired some property by issuing 100 000 shares to...
Study smarter with the SolutionInn App