Write a java program that uses a two-dimensional array

Assignment Help Computer Engineering
Reference no: EM133213

Question

Write down a Java program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program has to output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of following methods-

a) Method getData: This process reads and stores the data in the 2-dimensional array.

b) Method averageHigh: This process calculates and returns average high temperature of the year.

c) Method averageLow: This process calculates and returns average low temperature of the year.

d) Method indexHighTemp: This process returns the index of highest temperature in array.

e) Method indexLowTemp: This process returns the index of lowest temperature in array.

Reference no: EM133213

Questions Cloud

What is customer relationship management system : What is Customer Relationship management System (CRM)? How does such system add value to an organisation and to its consumers How does a Database Management System assist a business to improve centralisation, eliminate redundancy, and maintain re..
Write down program that models an employee : Write down program that models an employee
Generate queries for new database : Generate Queries for New Database
Separate following program into appropriate lexemes : Separate following program into appropriate lexemes
Write a java program that uses a two-dimensional array : Write a Java program that uses a two-dimensional array
Problem on sql statement : Problem on  SQL statement
Identify and classify the it infrastructure components : Identify core and side business activities of UPS and explain how same are driven by technology, Identify and classify the IT infrastructure components available at UPS and its subsidiaries
Write down an automated checkout program : Write down an automated checkout program
What are the kinds of information systems : What are the kinds of information systems

Reviews

Write a Review

Computer Engineering Questions & Answers

  Arrays and control structures important tools in programming

Arrays and control structures important tools in programming.

  Designing a solution to the problem

Designing a solution to the problem and implementing the design using principles of correct syntax

  Security vulnerability

What is the security vulnerability of this solution

  How to run and modify marie program

How to run and modify marie program Include a decision before storing and outputing result. If  value of the result is not positive (so zero or negative), set  Result value to the value ZERO (0)

  Write the code used in a for loop

Write the code used in a for loop

  What are dissimilar types of errors

What are dissimilar types of errors.

  How to develop a problem definition

How to develop a problem definition

  What is dft of a pure cosine wave cos

What is DFT of a pure cosine wave cos(t) sampled at n equally spaced points on the interval [0, 2π)?

  Problem on bubble sort algorithm

Problem on Bubble sort algorithm

  Encipher a message using a keyword

The first program will encipher a message using a keyword and second program will decipher a message using a keyword.

  Describe how left explanation is useful while formatting

Describe how left explanation is useful while formatting

  What is the worst-case delay for acknowledging an interrupt

What is the worst-case delay for acknowledging an interrupt

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