You are to develop a Java console appolication using the NetBeans 8.2 IDE. The application is...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
AustralianRulesFootballjava The program generates statistics for Australian Rules football import javautilScanner public class AustralianRulesFootball int gameID1will increment to array index 0 allTea... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Working individually or in groups, you are to develop a short programmed learning program on the subject Guidelines for Giving a More Effective Lecture.
-
Working in groups you are to develop a short programmed learning program on the subject Guidelines for Giving a More Effective Lecture Students should use the guidelines listed in the programmed...
-
You are to develop a mixing valve for use in a dairy processing facility. The rated output of the valve is to be 10 gal/min of chocolate milk. There will be two separate input lines, one for milk and...
-
In schema normalisation, is Boyce-Codd Normal Form (BCNF) always to be preferred over 3rd Normal Form (4NF)? Explain your answer. [5 marks] 8 (TURN OVER) CST.2004.7.4 8 Economics, Law and Ethics (a)...
-
Find the number of positive integers n where 1 n 1000 and n is not a perfect square, cube, or fourth power.
-
Consider a person who is sitting on a friction less rotating stool as in Figure P9.43. The person initially has his arms outstretched and is rotating with an angular speed of 5.0 rad/s. He then pulls...
-
Christopher Boling was seriously injured in 2008 when vapors escaping from a gas can ignited. He filed a products liability claim against the manufacturer. To fund the litigation, Boling entered into...
-
Quality Brick Company produces bricks in two processing departmentsMolding and Firing. Information relating to the companys operations in March follows: a. Raw materials were issued for use in...
-
Does the monopoly power wielded by professional sports leagues hurt the fans, players, citizens, local economies, or the sport? What solutions could be used ?
-
One of the biggest purchases we make in our lifetimes is for a home. Questions that we all ask are these: How much should I spend for a particular home? How many bathrooms are there? How long...
-
Suppose that the market return is 13.3% per year and the risk free rate averaged 4%. The risk free rate is now 5%. You are considering a project with the same risk as the market. What should its...
-
Suppose that Tesla Motors issued a bond with 1 8 years until maturity and a face value of $ 1 0 0 , and a coupon rate of 7 . 6 % ( annual payments ) . The yield to maturity on this bond when it was...
-
Listen Jessica jogged 9km in an hour. She covered the last 4km at a speed that was 2k(m)/(h) slower than her speed in the first 5km. What was her speed over the first 5km ?
-
to scale We have a production function which has a constant returns Y = F(A, K, L) = AK L and capital acumulation function Ki+1 = KSY SK, - (i) Define equations above -L (ii) Find out steady state...
-
What should be the price of a bond which has a par value of Rs . 1 0 0 0 carrying a coupon rate of 8 % and having a maturity period of 9 years? The required rate of return of the investor is 1 2 % .
-
Face amount of bond: $ 1 , 0 0 0 Terms of redemption: $ 1 , 0 0 0 is redeemable after 1 0 years Coupon rate: 5 % per year, payable semi - annually X = Premium if the effective annual yield to...
-
How do evolutionary theories elucidate the adaptive significance of behavioral flexibility in human beings?
-
Determine the optimal use of Applichem's plant capacity using the Solver in Excel.
-
Working individually or in groups, discuss how you would set up an affirmative action program.
-
1. How should the firm go about identifying hazardous conditions that should be rectified? Use data and checklists such as in Figure 14.4 and the HR Practice feature on pages 400 403, to list at...
-
What is meant by good faith bargaining? Using examples, explain when is bargaining not in good faith?
-
A thermally isolated system at constant pressure consists of \(10 \mathrm{~kg}\) of air at a temperature of \(1000 \mathrm{~K}\) and \(10 \mathrm{~kg}\) of water at \(300 \mathrm{~K}\), connected...
-
An incompressible liquid of specific volume \(v_{l}\), is in equilibrium with its own vapour and an inert gas in a closed vessel. The vapour obeys the law \[p(v-b)=\Re T\] Show that \[\ln...
-
Show that if a liquid is in equilibrium with its own vapour and an inert gas in a closed vessel, then \[\frac{\mathrm{d} p_{v}}{\mathrm{~d} p}=\frac{ho_{v}}{ho_{l}}\] where \(p_{v}\) is the partial...
Study smarter with the SolutionInn App