Java program to store temperatures in two-dimensional array

Assignment Help JAVA Programming
Reference no: EM1370757

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

getData- this method reads and stores the data in the two-dimensional array.

averageHigh- This method calculates and returns the average high temperature of the year.

averageLow- This method calculates and returns the average low temperature of the year.

indexHighTemp- This method returns the index of the highest temperatures in the array

indexLowTemp- This method returns the index of the lowest temperature of the array.

For this problem, you should provide two options for the user:
(1) To read data (i.e. the pair of input numbers) from a file, and then send results to a file
(2) To read data from the command line, and display results on the screen
(3) These options should be provided as a GUI dialog box, for example using the JOptionPane class.

Reference no: EM1370757

Questions Cloud

Concept of monopoly welfare loss : Compute the profit maximization level of activity. Compute  total revenue, total cot and profit or loss at profit maximization level of activity. Compute elasticity of demand at profit maximization. Compute the breakeven level of activity.
Find the total amount of cash reserves : Suppose the public in Nealland does not hold any cash. All commercial banks, however, hold 5 percent of their checking deposits as excess reserves, regardless of the interest rate.
Explain what does silence during communication indicate : Explain What does silence during communication indicate to you personally and How is your culture's use of silence connected to Hall's cultural patterns of low and high context
Most important factor to teach things : Upbringing is a factor that "burns with fire" in us to teach things that we are going to keep in the future. Explain
Java program to store temperatures in two-dimensional array : Write the Java program which uses two-dimensional array to store highest and lowest temperatures for each month of the year. Program must output average high,average low,
Compute the minimum amount of energy : Let the x axis be parallel to the ground, +y direction be vertically upward, and take as an origin the point on the ground directly below the top of the ramp.
Find firm profit-maximizing price and quantity : Find firm's profit-maximizing price and quantity. Illustrate what is profit. firm's production manager claims that firm's average cost of production is minimized at an output of 40 units.
Question related to training : How can an organization impart training to users on the analytical and proper utilization of data in a Decision Support System? Please explain.
Calculate required reserve ratio : Karen has kept her entire life savings, $50,000, in a floor safe underneath her bed. This morning, she make a decision to deposit her savings in a checking account at Cambridge Bank.

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