Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties: Name - The player’s name ( a string) JerseyNum - The player's jersey number (an integer) Goals - Number of goals scored (an integer) Assists - Number of assists (an integer)

Answers

Answer 1
Answer:

Answer:

public class TestSoccerPlayer {

   public static void main(String[] args) {

       SoccerPlayer playerOne = new SoccerPlayer("Rinco",9,16,22);

       System.out.println("The player of the season is "+playerOne.getName()+" His Jessey Number is "+playerOne.getJerseyNum()

       +" In the 2019/2020 season he scored and total of "+playerOne.getGoalsScored()+" and "+

               playerOne.getAssists()+" Asists");

   }

}

See the SoccerPlayer class with the feilds and methods (constructor, getter and setters) in the explanation section

Explanation:

public class SoccerPlayer {

   private String name;

   private int jerseyNum;

   private int goalsScored;

   private int assists;

   public SoccerPlayer(String name, int jerseyNum, int goalsScored, int assists) {

       this.name = name;

       this.jerseyNum = jerseyNum;

       this.goalsScored = goalsScored;

       this.assists = assists;

   }

   public String getName() {

       return name;

   }

   public void setName(String name) {

       this.name = name;

   }

   public int getJerseyNum() {

       return jerseyNum;

   }

   public void setJerseyNum(int jerseyNum) {

       this.jerseyNum = jerseyNum;

   }

   public int getGoalsScored() {

       return goalsScored;

   }

   public void setGoalsScored(int goalsScored) {

       this.goalsScored = goalsScored;

   }

   public int getAssists() {

       return assists;

   }

   public void setAssists(int assists) {

       this.assists = assists;

   }

}


Related Questions

The function changeLocation is also called a _____.class bike:def __init__(self,size,idNum,color ):self.size = sizeself.location = 10self.color = colorself.idNum = idNumdef changeLocation(self,newLocation):self.location = newLocationmanipulatorinitiatormethodconstructor
Write a function in Matlab which takes as input an integer x and as output returns the biggest prime number that is less than or equal to x. For example, if the input is 7, the output would be 7. If the input is 40, the output would be 37. (Reminder: isprime.)
Microsoft word 365 allows cells to be split into how many columns
Write a function namedadd_complex that adds the correspondingnumbers of its arguments (both complexstructures), then returns the result (anothercomplex structure)
Jill needs to create a chart for technology club that shows what percentage of total students in the school play video games. Which chart or graph should she use? Bar graph Column chart Line graph Pie chart

What qualities or characteristics of your teammates are important to the success of the team?

Answers

Sometimes being creative is a very good way to contribute to your team giving a helping hand could save your team in the long run
Helpful..cooperative.. resourceful.. sportsmanship.. sometimes being creative but the important is the way they contribute to the team.

Raj, a recent graduate, has recently joined your organization as a Junior Business Analyst. He has been asked to conduct a Feasibility Analysis on whether to automate the process of software installation or not. If you were in Raj's place, based on which of these parameters would you identify if that process can be automated? Pick onea. Availability of software licensingb. Entering license number during installationc. Operating System being usedd. Software version being used

Answers

Answer:

a. Availability of software licensing

Explanation:

With feasibility analysis, we take into consideration economic, technical, legal, and scheduling factors to make sure that our project completes successfully. Acquiring license for a software can be free of cost or paid subscription. So a business analyst needs to make an account of the cost of accessing the software services. Also while automating a software installation process, it would require automatic authentication which would again require details of licensing. So in my best knowledge, analyzing availability of software licensing is a must and foremost step for a feasibility study.

A) What actions or steps in Excel can you take to rank them from 1st to 10th (4 marks) b) State the specific action(s) or step(s) in Excel that will produce a list/display of those countries with 800 or more medals in total? (4 marks)

c) Which type of graph will be suitable for representing only gold medals information? (2 marks)

d) In which column(s) might replication have been used?
(2 marks)

e) What Excel formula can be used to calculate the overall total medals awarded? (3 marks)


14) Write the Excel functions for the following: (5 Marks each)

a. Give the total number of medals for Germany and Great Britain.

b. Give the average number of silver medals for a European country,

c. Sum the Medals Total for Gold for those countries with less than 20 games involvement.

d. Search the database (the whole spreadsheet) to find ‘Italy’ and also the corresponding Medals Total.

Answers

Answer:

a) highlight row F by clicking on F, go to toolbar at top undar DATA click filter, you will see an arrow next to F now, click the dropdown on the arrow and sort

Explanation:

Which of the following protocols is used to unsure secure transmissions on port 443?A. HTTPSB. TelnetC. SFTPD. SHTTP

Answers

Answer:

A. HTTPS

Explanation:

Default HTTP port is 80. This means that the server request is received on port 80. But default HTTP request is susceptible to interception. In order to prevent it, HTTP communication is secured using SSL encryption (HTTPS protocol). In this case the Url string begins with 'https://' which differentiates it from normal web request. The default port used for HTTPS service is 443 instead of 80.

What game is this? help mee?

Answers

Answer:

nooooooo

Explanation:

1. What are the advantages and disadvantages of technology in communication?

Answers

The advantages and the disadvantages of the communication with the used of the technology are: Quickly communicate and the lack of privacy.

What is communication?

The term communication refers to the exchange of thoughts, ideas, and messages that are shared between two or more people. Without language, a person can survive, but without communication, no one can survive. Communication is divided into two categories, such as interpersonal and intrapersonal.

Advantages of the communication with the used of the technology are:

  • Quickly communicate.
  • Easy to used.
  • Managed the data and share the data easily.

Disadvantages of the communication with the used of the technology are:

  • Privacy issues.
  • Hacking Data.
  • They recover the data all the time not to the easy.

Hence, the significance of the communication are the aforementioned.

Learn more about on communication, here:

brainly.com/question/22558440

#SPJ2

Answer:

ADVANTAGES:

First, the evolution of technology is beneficial to humans for several reasons. At the medical level, technology can help treat more sick people and consequently save many lives and combat very harmful viruses and bacteria.

2-Technology has also increased the productivity of almost every industry in the world. Thanks to technology, we can even pay with bitcoins instead of using banks

DISADVANTAGES:

1-Lack of Privacy. You might think that a quick text or IM offers more privacy than a telephone call in a crowded room. ...

2-Distraction from Real Life. ...

3-Potential for Misunderstanding. ...

4-Decline of Grammar and Spelling...

5- Near people are far and far people are near through communication technology. we have no time to sit with our relatives but constantly communicate far away people . I think this is biggest disadvantage

Explanation:

Other Questions