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

  Space agency wants to develop a database of all satellites

Problem 1: A space agency wants to develop a database of all satellites that humans have launched into space. Data includes the satellite identification, date of launch, destruction date, purpose, maximum orbital altitude, launching location, launchi..

  Programme should be able to edit books entry

Programme should have minimum of 3 functions (parameters passing demonstration) Programme should be able to add new books entry (name, ISBN ,author etc). Programme should be able to edit books entry. Programme should be able to issue the books.

  Error on a typical public telephone line

The probability that a single bit will be in error on a typical public telephone line using 4800 bps modem is 10 to the power -3. If no error detection mechanism is used, the residual error rate for a communication line using 9-bit frames is approxim..

  There are four conditions that are necessary

There are four conditions that are necessary for a deadlock to occur. Give an example to show that these conditions are not sufficient for a resource deadlock to occur. When are these conditions sufficient for a resource deadlock to occur? Explain..

  Create a level 0 dfd for a university library

Sometimes, books are lost or are returned in damaged condition. The manager must then remove them from the database and will sometimes impose a fine on the borrower.

  What is the syntax of the inheritance method

What is the syntax of the Inheritance method to extending a base class in C++

  Create a t-sql script that returns the student id

Write a T-SQL statement that returns the faculty ID, last name and monthly salary of two faculty members with the two lowest monthly salary values.

  Develop a two-page brief on email or phishing scams

Develop a two-page brief on email or phishing scams reported within the past six months. Indicate who they were directed to, who might be behind these attacks and why. Also address any similarities/differences between similar previous attacks.

  Explaining project manager-s role in project management

Describe in scholarly detail project manager's role in project management and job responsibilities related with position.

  Network administration architecture process improvement

Network Administration Architecture Process Improvement

  Describe the three principles of direct manipulation

Describe the three (3) principles of direct manipulation and give examples as to how they are used in video game controls. Analyze video game-type interfaces and discuss three (3) reasons why video game-type interfaces would not be effective for re..

  Explain the discrepancy

Explain the discrepancy

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