Visual Studio and C++

Inaendelea Ilichapishwa Miaka 5 iliyopita Kulipwa wakati wa kujifungua
Inaendelea Kulipwa wakati wa kujifungua

Write a program to help football team to keep track of its players’ performance. The file that prints out the player’s stats is already coded. You are given a class for a player; however, a football team is composed of offensive and defensive players. So you need to build on the player class. It is rare that a player is both, so assume the team has exclusively offensive and defensive players. All players have a name, number and they all play for some number of minutes. However, a defensive player is measured by the number of tackles they get, while an offensive player is measured by the number of yards they get. For this assignment you need to create 2 classes that inherit from a class player that has already been coded. The player class makes no calculations; it just holds data of each player. Your class will be used by the main function in [login to view URL] to print the team’s stats, so it must follow the guidelines below. You may not change the files given in any way.

Download the Football project here: and unzip it. Football VS [login to view URL] the document

It does not compile because it misses some classes. The project needs 4 files added: defense.h, [login to view URL], offense.h, [login to view URL] (10 points). There are also a few questions that must be answered (20 points).

Note the [login to view URL], player.h and [login to view URL] files must not be changed in any way. 10 points will be deducted if any of them has been modified.

The added files should be formatted similarly to the Player class files. The classes need to have the following, and you must decide the return types, visibility and any additional modifiers for these methods:

defense class fields:

int tackles;

defense class methods:

Defense(string name);

setMinutesPlayed(int minutes);

setTackles(int tackles);

printStats() const;

offense class fields:

int yards;

offense class methods:

Offense(string name);

setMinutesPlayed(int minutes);

setYards(int yards);

printStats() const;

Questions:

On lines 29 to 33 of [login to view URL], why is there an ‘&’ before the player variables?

For lines 45 to 49 of [login to view URL], why not use a loop?

On lines 10, 11 and 52 of player.h, what do the #ifndef, #define and #endif preprocessor commands do?

On line 20 of player.h, the string name is private, what did you have to do because of this?

On lines 24 of player.h, why does minutes played have to be protected, not private?

On line 43 of player.h, why is the function assigned zero?

On line 49 of player.h, what does the word ‘const’ do?

What method should be entirely in the base class? Why?

Which class is an abstract class? Why?

Name one thing you learned or had forgotten and remembered in this task.

The final output should look like the following: (but the names should be your project group members)

Remove the debug folder from the project. Answer the 10 questions in a text file, then put it with the cleaned project in a folder named Task2.

.NET C Programming Kuprogramu ukitumia C# Uprogramu C++ Software Architecture

Kitambulisho cha Mradi: #17740325

Kuhusu mradi

17 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

17 wafanyakazi huru wanazabuni wastani wa $123 kwa kazi hii

it2051229

Hi there, I went through the initial requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

$35 USD kwa siku 1
(Maoni 1049)
7.7
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Zaidi

$100 USD kwa siku 2
(Maoni 203)
7.3
asadrana91

Hi there, i have a vast experience in c++ programming, if you need an A grade in this assignment guaranteed contact me. cheers :)

$155 USD kwa siku 3
(Maoni 83)
6.5
koustav2006

Hi...I am quite strong at C++ programming using OO design concepts using Visual Studio C++ as well as for linux platform and can help you complete the C++ classes and methods implementation as per given requirements.

$77 USD kwa siku 1
(Maoni 231)
6.6
ThanassisKalv

I am experienced with C++ and Visual Studio IDE, I can work out the questions as clear as possible Contact me for more Thanassis

$111 USD kwa siku 3
(Maoni 107)
6.3
mrhammadrauf

Hi I have over 2 years of experience in programming. I can do any c++ program and i am instructor of c++ at congigallery.com. There is no zip file. You can ask any question regarding c++ and i will answer you. New Zaidi

$100 USD kwa siku 3
(Maoni 12)
3.9
LeDinh

Hello, I'm an IT engineer with a master degree. I've got 3 professional years of experience as a C++ developer. I can do your assignment without problem. I've done several assignment in the past days. Contact me if Zaidi

$50 USD kwa siku 5
(Maoni 11)
3.4
vasstep

Dear Sir, I can do this project for you easily in a short time, please, contact and bid me if interested.

$30 USD kwa siku 2
(Maoni 6)
2.7
AyazCs

I am .Net developer with around 5 years of diversified work experience. I have worked on many softwares and website with intense coding practices

$50 USD kwa siku 3
(Maoni 1)
0.3
aswinvijayakumar

Being finished a course on Intel c++, I would be happy to complete your project. To discuss plesae get in touch on the chat / email / phone. LinkedIn: aswinvk28

$133 USD kwa siku 3
(Maoni 0)
0.0
debapritam22

Hello Dear, I am quite confident that i can complete the task within 2 days. But questions that you have put are not clear to me as i could not download the file. Coming to my skill set, i have been working since Zaidi

$155 USD kwa siku 2
(Maoni 0)
0.0
prajyotneve

I am having 12 yrs industrial experience in various domains. I worked on C, C++, Core Java technologies. Have extensively used algorithm and data structures. Have 9+ yrs experience in Unix/Linux with Multithreading.

$255 USD kwa siku 10
(Maoni 0)
0.0
usmanprotech

I am a professional ASP.Net developer with full stack experience. I can understand your requirements and doing everything work perfect i will need time up to 2 weeks. looking forward to give it a start.

$300 USD kwa siku 10
(Maoni 0)
0.0
pintu889

i can create the header and cpp files as im working on cpp from 6 years. please share the project i can answer the given questions

$222 USD kwa siku 2
(Maoni 0)
0.0