#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Please help with my java codes


    I'm wondering will there anyone be able to help me with my this task? Please. I need it in Java codes. Please send to my inbox the answer if anyone can help. Thanks

    You are interested in keeping track of the team members and competition information for your college’s annual entries in computer science programming competitions. Each team consists of exactly four team members. Every year your team competes in two competitions. As an initial start for your record keeping, create a class named Team that has the following data members:

    //Name for the team
    String teamName;
    //Names for each team members
    String name1, name2, name3, name4;
    //Info on each competition
    Competition competition1, competition2;

    Note that there is a much better way to represent the team members and competitions using arrays, but this covered in next chapter. The class should also have a method that outputs all the names of all team members and the competition information to the console.

    The Competition class contains variables to track the following:
    String: Name of the competition, Name of the winning team, Name of the runner-up
    Integer: Year of the competition

    Implement the Team and Competition classes with appropriate constructor, accessor, and mutator methods. In entering data for past competitions, you note that an entry is usually very similar to the previous year’s entry. To help with the data entry, create a copy constructor for the Team class. Test your copy constructor by creating a copy of an existing team object, changing the competition information for the copy and outputting the data for the original and the copy. The original object should be unchanged if your copy constructor is working properly.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Location
    Saint-Petersburg, Russia
    Posts
    237
    Rep Power
    29
    I'm wondering will there anyone be able to help me
    It sounds like "help me to cheat" - am I correct?

    Or perhaps you have already written something. It would be good to show your code, even if it is not working so we can work from it.
    CodeAbbey - programming problems for novice coders

IMN logo majestic logo threadwatch logo seochat tools logo