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

  Determine how far a car may be driven based on the capacity

Develop a process that will determine how far a car may be driven based on the capacity of the gas tank in gallons and the fuel economy.

  Discuss the social and economic impact of technology

Assuming that you are in this class because you are interested in becoming a programmer. So, what does it take to be a good programmer?

  Define monomeric and polymorphic type systems

Define monomeric and polymorphic type systems. Check in the Pascal manual if procedures and functions can be overloaded.

  Assume that we are looking in a programming language

suppose that we are looking in a programming language that allows underscore (_) in variable names. When a scanner sees a character string such as AB_CD, is it more likely to identify this string as the single five-character token AB_CD or as thre..

  Create a web application to match the topics

Create a web application to match the topics discussed in the Capstone. Cloud computing poses some challenges, such as manageability, reliability and security.

  Explain removing zoogloea from wastewater

Removing Zoogloea From Wastewater, Problem statement: A 1 million gallon per day biological wastewater treatment system received influent wastewater containing high concentrations of organic acids (especially acetic acid)

  Find out the minimum-cost spanning trees

Find out the shortest paths from S to all the other nodes in the graph using Dijkstra Algorithm.

  Choose decision support systems (dss) function

You are developing a new information system for The Fitness Center, company that has five fitness centers in your metropolitan area, with about 650 members and 30 employees in each location.

  Which nodes are in the subtree rooted at node projects

How many ancestors does node cs016/ have? What are the siblings of node homeworks/? Which nodes are in the subtree rooted at node projects/?

  What is the difference if any between end and hlt

What is the difference (if any) between A location counter and a program counter, END and HLT.

  List the hexadecimal code for each instruction

Consider the MARIE program below. a) List the hexadecimal code for each instruction. b) Draw the symbol table. c) What is the value stored in the AC when the program terminates?

  What are three areas to look to fix this problem

You have a network with a DNS server and a DHCP server on it. Both are running on different servers.

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