Write a java program that uses a two-dimensional array

Assignment Help Computer Engineering
Reference no: EM132201096

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: EM132201096

Questions Cloud

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.
What raw scores would have z scores 2 and -2 : The data set {69, 72, 75, 78, 81} has the mean 75 and the standard deviation (SD) 4.74. What raw scores would have z scores 2 and -2?
In which city should the aglet factory locate : During times of high demand for aglets, the demand curve (MRP curve) foraglet makers is given by P = 8 - Q. During low demand, the MRP curve is given.
Write a java program that uses a two-dimensional array : Write a java program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year.
Read a sentence as input and converts each word : Write a java program in netbeans or eclipse that reads a sentence as input and converts each word to "Pig Latin".
Write a java program that prints a string of zeros and ones : Write a JAVA program that prints a string of zeros and ones that represent the bits of an integer.
Count the word frequencies of all words in the file : Write a Java program that reads from the user the name of a text file, counts the word frequencies of all words in the file.
What does responsibility and accountability mean : what does responsibility and accountability mean to you on a professional level - Are these interchangeable and who are you responsible/accountable to

Reviews

Write a Review

Computer Engineering Questions & Answers

  Study effect of mismatch between input and assumed variances

Use the program misuquan to study the effect of mismatch between the input and assumed variances. How do these effects change with the quantizer alphabet size and the distribution type?

  The means of defending against general dos attacks

Research tool, search for alternative means of defending against either general DoS attacks or a particular type of DoS attack.

  How much should the broker invest in each security

An investment broker has been given $250,000 to invest in a 12-month. How much should the broker invest in each security so as to maximize return on investment?

  Create a single view iphone project

Create a single view iPhone project that demonstrates the following skills, features, and functionality: Create a Single View iPhone project using Objective-C.

  Discuss and creating a programming logic

creating a programming logic for it can be a complicated process

  Questioni briefly describe the concept of queuesii give

questioni briefly describe the concept of queues.ii give two applications of queues in computing.iii describe

  You have been put in a role of the cio chief information

you have been put in a role of the cio chief information officer you may choose the type of facility. looking at the

  How many different tickets can a person buy

How many different tickets can a person buy? For the remaining subproblems, assume that the person just bought one ticket.

  Consider the pipelined implementation devoid of forwarding

consider the pipelined implementation without forwarding andor stalling of the mips microprocessor.a explain how this

  Discuss how net neutrality will affect data networks

Base on your article review and the assigned reading, discuss how net neutrality will affect data networks and the availability of information to businesses.

  What are the pros and cons of shifting to oop

If structured programming promotes the creation of good code and procedural programs are easier to maintain, why do you need to shift to OOP?

  Write a java interface called priority

Write a Java interface called Priority that includes two methods: setPriority and getPriority. The interface should define a way to establish numeric priority.

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