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 is the worst-case time for putting n entries

What is the worst-case time for putting n entries in an initially empty hash table, with collisions resolved by chaining? What is the best case?

  Briefly describe your group project reflections

Briefly describe your group project reflections (some of the challenges encountered) in designing your e-business website

  Create a ring class along with functions for inserting data

Create a templated ring class along with functions for inserting and deleting data, and a function that displays the contents of the ring.

  Describe the process the algorithm is executing

View the visual presentation of your algorithm in xSortLab; Describe the process the algorithm is executing;Characterize and evaluate the algorithm in terms

  Describe some illustrations of functional versus

discuss some examples of functional versus nonfunctional requirements.what would exemplify these requirements in a

  Describe the differences between stubs and drivers

Describe the differences between stubs and drivers. Briefly describe a test plan for the telephone directory program described.

  Create a powerpoint presentation based on a virus prevention

Create a PowerPoint presentation based on a Virus Prevention document - "Compile a list of strategies for avoiding virus infections and incorporate this list into a document to be sent to all employees" that will be the subject of the presentation..

  How do you change the home page 9how do you delete the web

1.what is a peer tp peer network? what is a client server network?2.what is the difference between an internet and an

  What is a backup strategy or active directory?

What is a backup strategy or Active Directory? The small business that you created new domain controllers for now wants you to develop a backup and recovery plan for Active Directory.

  Research which is better or more secure ssl or tls

Research which is better or more secure SSL or TLS - explain and justify your position. Include which one you use today and plan on using tomorrow.

  The importance of the common protocol (tcp/ip)

how the other future communication needs may or may not continue this dependence.

  Write a function that takes one string parameter

Write a function named wordLenghts() that takes one string parameter (text)you may assume that the given text contains only letters.

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