A method that calculates the average low for the year

Assignment Help Computer Engineering
Reference no: EM132201103

Write a java program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The input should be read from a text file using the following data:

30 40 45 60 70 90 89 95 79 90 70 40

-10 -8 20 30 50 75 85 79 50 80 30 12

For example, 30 represent the highest temperature in the month of January and -10 represent the lowest temperature in the month of January.

The program should calculate the following:

A method that calculates the Average high for the year

A method that calculates the Average low for the year

A method that calculates and returns the index of the Highest temperature of the year

A method that calculates and returns the index of the Lowest temperature of the year

Should have all other standard methods such as setters, getters, constructors (default, alternate, and copy), makCopy, getCopy, equals, toString.

Your output must be written to an output file

Note that your program should have at least two classes. This means an object in main should calculates the output in the list above.

Reference no: EM132201103

Questions Cloud

Sample from a normal population yields : A random sample from a normal population yields (80.0, 110.0) as a 95% confidence interval for µ. Which of the following are true? (All tests are two-sided.)
Create a window containing a picture of a submarine : Write a Java program using AWT and Swing objects as well as Threading to create a window containing a picture of a submarine.
Non-vaccinated and the vaccinated : Vaccine was given to a randomly selected portion of the population. Assuming normal distribution, these were the results: 180 vaccinated and diseased
Write a java program that prompts the user for input : The first line of the input file will indicate the number of times the program will prompt the user for input (n).
A method that calculates the average low for the year : A method that calculates the Average low for the year. A method that calculates and returns the index of the Highest temperature of the year.
Estimate the true mean amount : A federal inspector visited an oil refinery for a routine inspection. He used a 99% confidence interval to estimate the true mean amount of sulfur contained
Compute the expected counts for color : (A) Compute the expected counts for each color. (B) What is the test? statistic? (C) What is the? P-value of the? test?
What are their letter grades using this system : If a class of 10 students take a quiz and half get a 90 and half get a 92, the mean is 91 and the standard deviation is 1.05. What are their letter grades using
Some data with explanatory variable number : Suppose for a regression fit to some data with explanatory variable number of years of experience and response variable salary, R2 = 0.92.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What will be the resulting digital signature

Instead of signing the message directly, you sign a hash of the message, obtained by adding the ascii codes of all the characters.

  What is physical address for each virtual address

CSC 305 Computer Organization-What is Physical address for each virtual address - find physical addresses and identify if each address generates TLB Hit page

  Discuss fundamental advantage of using software as a service

Discuss the fundamental advantages and disadvantages of using software as a service (SaaS) within organizations. Next, give your opinion as to why SaaS.

  What is a likely source of the error

If your program produces an error message that says stack overflow, what is a likely source of error? Write an iterative version of the function defined in 2.

  You are the chief information security officer ciso for vl

you are the chief information security officer ciso for vl bank as depicted in the attached vl bank case study.

  Program for dissimilar values for real numbers

Program for dissimilar values for real numbers

  Discuss a home improvement project

Tell me about a project that you have been involved in. It does not have to be IT/Computer related. It can be any type of a project ex.

  How will end users typically respond to such announcements

How might an organization notify its users that all communications are being monitored and preserved? How will end users typically respond to such announcements

  Describe what hacking of memory or hacking of ram means

Describe what hacking of memory or hacking of RAM means. Examine the common tools that hackers use to hack into memory of computing devices. Detail two (2) real-life examples of such tools in action.

  Find at least three shopping cart systems

Find at least three shopping cart systems that you feel would be easy to use. Create a Web page that reports your findings.

  Explain the difference between hardware and software

Explain the difference between hardware and software. Why should a manager care about software and how software works? What critical organizational and competitive factors can software influence

  What are the different types of networking-based attacks

After the presentation Like Magic asks LPSC to address other weaknesses in their system. You have been placed on the team to examine potential networking-based.

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