Highest and lowest temperatures

Assignment Help Basic Computer Science
Reference no: EM131069732

Write a 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:

a. Method getData: This method reads and stores the data in the two-dimensional array.

b. Method averageHigh: This method calculates and returns the average high temperature of the year.

c. Method averageLow: This method calculates and returns the average low temperature of the year.

d. Method indexHighTemp: This method returns the index of the highest temperature in the array.

e. Method indexLowTemp: This method returns the index of the lowest temperature in the array.

(These methods must all have the appropriate parameters.)

Reference no: EM131069732

Questions Cloud

Create and populate a linkedlist : Create and populate a LinkedList using a one dimensional array. Add 6 numbers to this LinkedList. Search this LinkedList and find the smallest number.
What would you use to validate your forecasting model : How would you gather your data? What would you use to validate your forecasting model? Would you look at the forecasting errors? What program would you use to make your forecast (i.e. Excel or Excel QM)
Department names of the oracle departments : What are the department names of the Oracle departments that have the same location ID as Seattle?
Find the mode i and mode ii stress intensity factors : You may assume that the depth of the substrate beneath the punch is infinitely large.
Highest and lowest temperatures : Write a 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 ..
Argue that tactics used by followers to get noticed : What do you say to those who argue that tactics used by followers to get noticed by their leader (such as impressions management, ingratiation, and selfpromotion) are shameful and self-serving and should be avoided?
What is dns : 1. How would you organize a network for an organization that had five departments? Where would you place the servers, both physically and logically? Specify the types of servers (e-mail, web, application, database, etc.) and provide some justific..
Movies dealing with the prison or college environment : Movies dealing with the prison or college environment often depict one or two prisoners or students who seem to have more influence over other prisoners or students than even the guards or administrators.
What is a hamiltonian cycle : write a two- to three-page paper that responds to each of the following questions: What is a Hamiltonian cycle? What is a Euler cycle? What is a minimum length Hamiltonian cycle

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Why are file system permissions so important in the linux

Why are file system permissions so important in the Linux DAC model? How they relate or map to the concept of subject "subject-action-object" transactions?

  Explain synthesise legal and ethical issues

It should be free from spelling and grammatical errors. You must also include Reference List (APA style) of all of the reference sources that you used. Your assignment MUST be...

  Name technological advance that has affected how consume

Name one technological advance that has affected how consumers research

  How can the eer model be further enhanced to support it

How can the EER model be further enhanced to support it?

  Access the administrative tools

Access the Administrative Tools

  Use the gaussion elimination algorithms presented

Use the Gaussion elimination algorithms presented in the lecture. Note that arrays in Matlab always start with index 1. (b) Test the function splinemoments with the data set i 0 1 2 xi 0 1 2 yi 0 2 0

  What is the smallest and largest integer

Show how the value ASCII "MIRIAM" is stored in memory in Big Endian format starting at location 100 hexadecimal. Assume that each memory location stored two ASCII characters.

  Importance of application maintenance in organizations

Explain the importance of application maintenance in organizations and assess the need for robust patch and update management programs and procedures. From the e-Activity, compare and contrast the update styles of Microsoft's Internet Explorer and Go..

  You have been asked to develop uml diagrams to graphically

you have been asked to develop uml diagrams to graphically depict and describe the architecture of two 2 unrelated

  Develop this as a function of x

That is, what is the value for X when an exhaustive read of the file is more efficient than random X reads? Develop this as a function of X.

  Planning database design-database modeling

The proper implementation of a database is essential to the success of the data performance functions of an organization.  Identify and evaluate at least three considerations that one must plan for when designing a database.

  Convenient way to document a system events

A use case is a convenient way to document a system's events. It serves as a kind of table of contents for the business events and activities that must be supported by the system. It will be used to identify how the system will be used and which a..

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