Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Practices - Section 8: The Soccer League Overview It's been a brutally cold and snowy winter. None of your friends have wanted to play soccer.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Practices - Section 8: The Soccer League Overview It's been a brutally cold and snowy winter. None of your friends have wanted to play soccer. But now that spring has arived, another season of the league can begin. Your challenge is to write a program that models a soccer league and keeps track of the season's statistics There are 4 teams in the league. Matchups are determined at random. 2 games are played every Tuesday, which allows every team to participate weekly. There is no set number of games per season. The season continues until winter arrives Defenses are sluggish on hot days. Hotter days allow for the The league is very t possibility of more goals during a game. If the temperature is freezing, no games are played that week. If there are 3 consecutive weeks of freezing temperatures, then winter has arived and the season is over. TaskS Write a program that models a soccer league and keeps track of the season's statistics. Carefully consider what data should be stored in an array and what data should be stored in an ArrayList. Design classes with fields and methods based on the description of the league. You'll also need a test class that contains a main method. All fields must be private. Provide any necessary getters and setters. Teams Each team has a name. The program should also keep track of each team's win-total, loss-total, tie-total, total goals scored, and total goals allowed. Create an array of teams that the scheduler will manage. Print each team's statistics when the season ends. Games In a game, it's important to note each team's name, each team's score, and the temperature that day. Number each game with integer ID number. This number increases as each game is played. Keep track of every game played this season. This class stores an ArrayList of all games as a field. Your program should determine scores at random. The maximum number of goals any one team can score should increase proportionally with the temperature. But make sure these numbers are somewhat reasonable When the season ends, print the statistics of each game. Print the hottest temperature and average temperature for the season

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

gpt 9 5 9 .

Answered: 1 week ago