Code 2-dimensional array that stores the average scores

Assignment Help JAVA Programming
Reference no: EM13883685

Instructions: Code a 2-dimensional (2D) array that stores the average scores for 2 football teams across 2 years. In a method called setAvgScores, prompt for the averages and store them in the 2D array which will be returned.

In the main(), call setAvgScores() and print the averages. Save the program as YourLastNameFirstInitialArraysV2.java. Which one is the row and which one is the column? Hint: For every team there are 2 years of stats.

Prompt: This prompt will be repeated for each team where the single 9s in the label represent the year and the team respectively.

import java.util.Scanner;

public class ArraysV2
{
public static void main (String] args)
{
//CALL THE setAvgScores() AND ASSIGN THE 2D ARRAY //THAT IT IS RETURNING TO A 2D ARRAY THAT IS LOCAL //TO THE MAIN
//USE FOR LOOPS (ONE NESTED WITHIN THE OTHER) TO //NAVIGATE THROUGH THE ARRAY AND PRINT ITS CONTENT
}// End main()
public static double= setAvgScores()
{
//CREATE A 2D ARRAY
//POPULATE THIS ARRAY USING AN OUTER FOR LOOP //THAT NAVIGATES TO EACH ROW
//THEN USE A NESTED FOR LOOP TO NAVIGATE THROUGH //EACH COLUMN WITHIN A GIVEN ROW
//RETURN THE 2D ARRAY
}//END setAvgScores() static double[][]

}//END APPLICATION CLASS

Reference no: EM13883685

Questions Cloud

Discuss the reliability of the model and give examples : What additional assumptions (to the main three) are important when applying the CAPM and what are the underlying strengths and weaknesses of this application? Discuss the reliability of the model and give examples in your explanation.
Describe the services that netezza offered and why ibm : Describe the services that Netezza offered and why IBM decided to purchase the company.
Management is considering purchasing new machine : Kingston, Inc. management is considering purchasing a new machine at a cost of $4,408,526. They expect this equipment to produce cash flows of $757,564, $830,902, $1,026,664, $1,059,322, $1,217,327, and $1,289,435 over the next six years.
A subatomic particle created in an experiment exists : A subatomic particle created in an experiment exists in a certain state for a time of Δt = 5.0 × 10-20 s before decaying into other particles. Apply both the Heisenberg uncertainty principle and the equivalence of energy and mass  to determine the mi..
Code 2-dimensional array that stores the average scores : Instructions: Code a 2-dimensional (2D) array that stores the average scores for 2 football teams across 2 years. In a method called setAvgScores, prompt for the averages and store them in the 2D array which will be returned
What level of distribution is hubway aiming for? : what level of distribution is Hubway aiming for?
Discuss the arbitrage pricing theory : Discuss the Arbitrage Pricing Theory and the Fama-French factor and the "preciseness" of techniques used to calculate cost of capital. How does one decide on which technique is best to use?
A 0.500 mole sample of an ideal gas : A 0.500 mole sample of an ideal gas is at a temperature of 309 K at atmospheric pressure. Calculate the volume occupied by the gas.
Income statement beginning with pretax incom : 1.On December 31, 2013, the end of the fiscal year, California Microtech Corporation completed the sale of its semiconductor business for $10 million.

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