Question

You have been tasked with creating management software for soccer team. Your development team has decided...

You have been tasked with creating management software for soccer team. Your development team has decided to approach the problem using object oriented programming; you have been tasked with developing the object that will represent the soccer team. Briefly describe what members and methods should be included as part of the abstraction for a soccer team.

Homework Answers

Answer #1

The program can be modeled by counting the real things in the game. These are

  • Players and their attributes such as name, location in field, number, etc.
  • Audience
  • Weather
  • Reference etc.


Members:

They will be instances of the class. In the give situation, it can be:

  • Player: name, LocationX, LocationY
  • Referee
  • Weather
  • ScoreBoard
  • Audience
  • Football

Methods:

  • kickFootball()
  • jump()
  • run()
  • move()
  • update()
  • render()

The programming can be easily started in procedural style. It can then be refactored to class and objects.

The update() along with render() become necessary here. This is because of the fact that update() is used to change the state in the game and render() will draw the results on the scoreboard.

As an example, when a football object identifies collisions or variations in velocity and as a result position change, render() will be called.



Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Create a mock corporate compliance and risk management plan: You have been tasked with creating a...
Create a mock corporate compliance and risk management plan: You have been tasked with creating a corporate compliance and risk management plan for a small, rural public community hospital. In a minimum of 1000 words, discuss the steps you would take to create the plan, what specific areas you feel should be covered based upon the demographics of patients being served and how your plan will ensure patients are receiving quality care.
You have a large engineering company as a client and their software development team have informed...
You have a large engineering company as a client and their software development team have informed you that they are intending to implement test-driven (or test-first) development. Describe possible obstacles to the implementation of TDD for this client.
AHW2) Hello I have an agile software development methodology that is proposed by the combining the...
AHW2) Hello I have an agile software development methodology that is proposed by the combining the two other agile development methodologies, my question is how can I draw its process model that describe it entirely(as drawing graphs). The description of the new proposed methodology is given below: 1. The new Agile methodology is "Feature and Test Driven Development". 2. Feature Driven Development (FDD) is an iterative and incremental Agile methods for developing software. This is client centric pragmatic Software process....
You are part of agile innovation team. Your team has been staying close to Hospital IT...
You are part of agile innovation team. Your team has been staying close to Hospital IT team and adapt quickly to changing conditions for the new website. The team almost always result in higher team productivity and morale, faster time to market, better quality, and lower risk than traditional approaches can achieve. Your team members are familiar with testing the happy paths, how users (Patients ) should use the software. You team launched a web application for the Hospital after...
You are the lead trainer for the software development team at a large telecommunications company. You...
You are the lead trainer for the software development team at a large telecommunications company. You have been tasked with preparing a training document that explains the principles of polymorphism, inheritance, and encapsulation. Research these principles and provide examples for each principle, showing how they would be used in software development. Be sure to answer the question of how each principle would be employed in the software development process. Java programmers use class hierarchies for the purposes of inheritance. For...
You have a summer job in the Exploratorium in San Francisco. Your team has been tasked...
You have a summer job in the Exploratorium in San Francisco. Your team has been tasked to make an exhibit where a small charged pith ball is levitated above a large charged plate. Your boss requests for the small levitated object to oscillate when slightly displaced from its equilibrium position(in horizontal direction). One of your teammates suggests cutting out a small circular opening in the plate and suspending the small charged pith ball somewhere vertically above the center of the...
Part A ( 4 marks) A new project has been initiated by senior management to automate...
Part A ( 4 marks) A new project has been initiated by senior management to automate logistics processes in your company. A large budget has been allocated to this project because of its importance to the company's operations. You have been asked to present to senior management two reasons for software to be made by your own company and two reasons to buy ready-made solutions. What would you present? Part B Your company located in Australia requires the development of...
In your first project as the newest engineer to your team, you have been tasked with...
In your first project as the newest engineer to your team, you have been tasked with performing calculations related to a recently constructed water tower. The tower consists of a spherical tank the bottom of which is 30 ft above the ground and a pipe attached to the bottom of the tank that transports water from the ground to the tank. If the diameter of the spherical tank is 48 ft and the tank is being filled with freshwater having...
You have been hired to be part of the International Office of Centennial College. Your team...
You have been hired to be part of the International Office of Centennial College. Your team has been assigned to evaluate different countries to support an upcoming decision for the college to expand operations and open a campus in these countries. Your team is also tasked with evaluating the capacity of the college to expand to these countries. Which theory of international trade will most influences the college’s decision to expand operations in Brazil. Do not forget to provide an...
The project has been performing as planned, and the team members have been exhibiting increasing levels...
The project has been performing as planned, and the team members have been exhibiting increasing levels of trust between each other. The sponsor and the buyer have been satisfied with the delivery of business value, and user acceptance testing results are positive. A technical expert consulting with the team has expressed concerns that the team is not in agreement on the best way to deliver to the next review. If the project manager wants to support the team in reaching...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT