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

  Write java program to read present basic hourly wage

Write down a java program which will input 1. Read present basic hourly wage. Read in workers fist name and socond name.

  Create a java gui application using netbeans

Create a Java GUI application using Netbeans that allows the user to enter the number of hours spent in each activity and then calculates the number of pounds lost.

  Write down several reasons why exception-handling

question 1 give several reasons why exception-handling techniques should not be used for conventional program

  Write a program to test your class definition

Do not define an input method. The only method that can set the counter is the one that sets it to zero. Write a program to test your class definition.

  Summary of the case astrazeneca-unitedhealth

What is the summary of the case "AstraZeneca, UnitedHealth, and Others: IT-Asset Management- Do you know what youv've got?"

  Java class to accept a user-s hourly rate of pay

Write a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay, the withholding tax (15% of gross pay), and the net pay (gross pay - withholding).

  How are servlets and jsps deployed inside weblogic

How are Servlets and JSP's deployed inside WebLogic? In a Weblogic CMP EJB, how to obtain the maximum value in the specified database column? In WLQL is there something similar to MAX() function in SQL?

  An array of integers and returns the range of values

Write a method called range that accepts an array of integers and returns the range of values in the array. The range is defined as 1 more than the difference between the maximum and minimum values in the array. For example, if an array called list c..

  Write a java code that calculates the product

Write a java code that calculates the product of the subsequent sequence of numbers using for/loop and do/while/loop

  Implement the application using a singly linked list

Implement the following application using a singly linked list. This application accepts from console and stores a list of 10 names of your friends in the singly linked list

  Assignment in python

You will complete this assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this site: https://www.python.org/downloads/.

  Statement that creates and initializes a static variable

Write a statement that creates and initializes a static variable named salesTax to 7.59. Write a statement that creates a constant variable named TAX_RATE. The tax rate is 8.25%

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