Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to develop a Java console appolication using the NetBeans 8.2 IDE. The application is to determine the winning teams for a round

You are to develop a Java console appolication using the NetBeans 8.2 IDE. The application is to determine the winning teams for a round of Australian Rules football and to generate statistics for the round. In this particular league, there are 10 teams and a round consists of 5 games. For each game, the following data is to be entered from the keyboard. Name of team i Goals scored by team I Behinds scored by team / Name of team 2 Goals scored by team 2 Behinds scored by team 2 There are various ways in which this can be done. As shown below, I have chosen to enter all input values on a single line rather than on separate lines - the choice is yours. In Australian Rules football, a goal is worth 6 points and a behind is worth I point. The team wich the most points is the winner of the game. If both teams have the same number of points, the game is designated a draw. In addition to determining the outcome of each game, a rating for each game is to be displayed. Our rating is an integer in the range 1-4 and is an attempt to measure the "excitement" associated with a particular game. Ratings are as follows Rating Criteria 4 Winning margin is between I and 6 points inclusive or the game is drawn. Winning margin is between 7 and 24 points inclusive The winning margin is greater than 24 points, but both teams scored more than 100 points. All remaining results When all games for the round have been processed, the smallest and largest margins are displayed, together with the average margin (as a non-rounded integer) for the round. An example run is shown below: run: Enter results for each game in the round on a single line Format is: teami goals behinds teame goals behinds

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

AustralianRulesFootballjava The program generates statistics for Australian Rules football import javautilScanner public class AustralianRulesFootball int gameID1will increment to array index 0 allTea... 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_2

Step: 3

blur-text-image_3

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

Fundamentals of Human Resource Management

Authors: Gary Dessler

3rd edition

132994909, 978-0132994903

More Books

Students also viewed these Programming questions

Question

LO S6.2 Explain the role of the central limit theorem in SPC

Answered: 1 week ago

Question

=+b. What proportion of fasteners pass inspection?

Answered: 1 week ago