Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 1 Day Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 27 Aug 2017 My Price 9.00

coach and player

Question:
a. Create a class team representing a sports team with 1 coach and 3 players. Use the template for team provided. The attributes of a team are: - 1 coach  - 3 players
b. Make the necessary changes in the app below to create one A????1realA????1 team and display info about the third player in the team
c. Use the classes coach  and player that are (listed here below app.java

public class app

{

public static void main(String args[])

{

    coach mycoach = new coach("Joe P.", 70);

    player x1 = new player("Todd Pinkston", 87);

    player x2 = new player("Tra Thomas", 72);

    player x3 = new player("Artis Hicks", 77);

//--------------------------------------------------------------------

// create below a instance of a team with 1 coach + 3 players

//--------------------------------------------------------------------

//--------------------------------------------------------------------

// Display below information about the information about the third player in the team.

// And I am not taking about the players listed above (x1A????1x7) but the player that is in the class team

//--------------------------------------------------------------------

    System.out.println(______________________________________________________________);

}

}

class coach

{

String name;

int age;

    coach (String w_name, int w_age)

{

   name = w_name;

   age = w_age;

}

   String getInfo()

{

          return("Coach name ="+ name +","+ "age = " + age);

}

}

class player

{

String name;

int jerseyNumber;

player (String w_name, int w_jerseyNumber)

{

   name = w_name;

   jerseyNumber = w_jerseyNumber;

}

String getInfo()

{

          return ("Name=" + name +", number="+ jerseyNumber);

}

}

 
 

class team

{

// I started writing the A????1constructorA????1 below which needs completion

team (                                                                                                                                                                          )

{

}

Answers

(5)
Status NEW Posted 27 Aug 2017 04:08 PM My Price 9.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)