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

  In this project you need to write a java program called

in this project you need to write a java program called mm.java to perform matrix multiplication. your code will read

  What purpose does the wbs serve

What purpose does the WBS serve? Describe the structure of a WBS. How does a WBS contribute to accurate estimates?

  Generate an array of random integers from zero to nine

Generate an array of 20 random integers from zero to nine. Search for the first occurrence, if any, of the number 7, and report its position in the array

  What things are you struggling to understand

Discuss your experiences with the programming assignment - what things are you struggling to understand?

  Java program for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

  Constructing a simple flowchart that describes simple logic

Constructing a simple flowchart that describes simple logic flow through a program. Translating the flowchart into pseudo code. Creating a simple module, based on the pseudo code created in step 2, which accepts a parameter and returns a value.

  Write java program to receive input and displayed interest

Write a Java program that receive some input and displayed the interest. Format the number into 2 decimal places. Using loop is an advantage.

  Write a code fragment that would printout the multiplication

Write a code fragment that would printout the multiplication table for the number 3 multiplied by (1-10) .

  Changed to value-receiving and value-returning

The methods are to be changed to value-receiving, value-returning and a combination thereof. Therefore, when you call these methods make sure you send the correct arguments and properly process the value that is returned.

  Java application to generate three-digit random number

Write a Java application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers.

  Describe a multidimensional array

Describe a multidimensional array for a summer camp, the first array would be the number of kids say 30, then it would break them up by ages 6-9 (4 different groups) and lastly by sex m or f.

  What is jsp and why do we need it?

What is JSP and why do we need it?

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