Create an array for the home team scores

Assignment Help JAVA Programming
Reference no: EM131589033

Statistics on football games are often displayed as the number the points each team (home and visitor) scored in each of four quarters.

Write a program to create an array for the home team scores and another array for the visiting team scores. The program should ask for the name of the home team and the visiting team. It should also ask for the number of points each team scores per quarter. Then, based on that input, it will create a text chart with the data and the total number of points for each team.

The program should look like this. Remember, anything after a ">" is user input. Also, don't worry if you can't get the number to line up nicely in columns.

Enter the home team's name?
>Mountaineers
Enter the visiting team's name?
>Fighting Irish
How many points did the Mountaineers score in quarter 1? 
>7
How many points did the Fighting Irish score in quarter 1?
>7
How many points did the Mountaineers score in quarter 2?
>10
How many points did the Fighting Irish score in quarter 2?
>7
How many points did the Mountaineers score in quarter 3?
>0
How many points did the Fighting Irish score in quarter 3?
>14
How many points did the Mountaineers score in quarter 4?
>21
How many points did the Fighting Irish score in quarter 4?
>0

Total Statistics
Quarter Mountaineers Fighting Irish
1            7            7
2           10           7
3            0           14
4           21            0
Total     38           28

Reference no: EM131589033

Questions Cloud

Give a brief account of the reading assigned : What did you read? What sort of book is it? Give a brief account of the reading assigned.
Develop recommendations to avoid such communication problems : Develop recommendations to avoid such communication problems. Support recommendations with specific, current research related to cross-cultural communication.
Calculate the amount of each of the annual receipts : Nadine Love invests in a $60,000 annuity at 12% compounded annually starting today. Calculate the amount of each of the 15 equal annual receipts
What elements in the companys culture : What elements in the company's culture, external environment, or other factor influenced the ethical crisis? If it was portrayed in media, how was it portrayed?
Create an array for the home team scores : Write a program to create an array for the home team scores and another array for the visiting team scores. The program should ask for the name of the home team
Create a system of internal controls for the purchases : Create a system of internal controls for the purchases, payroll, and fixed assets business areas
The specific behaviors demonstrated by the offender : Discuss in detail the specific behaviors demonstrated by the offender that align with behaviors indicative of a psychopathic individual.
Define the financial analysis techniques : Based on the financial analysis techniques, suggest a cost-effective plan that might use this information to track women's morbidity and mortality trends
How does addiction and substance abuse related to mhis : Welcome to this week's podcast. This week we'll be discussing mental health and addictions. What characteristics do persons with mental health issues.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd