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

  Identify the strengths and weaknesses of the nist programs

Identify the strengths and weaknesses of the NIST programs compared to the ISO standard.

  Colliding signals in a transmission cable

Suppose two nodes, A and B, are attached to opposite ends of an 800 m cable, and that they each have one frame of 1024 bits (including all headers and preambles) to send to each other.

  What is a potential drawback of this kind of media

What is a potential drawback of this kind of media. Describe the experience of participating in this exercise, a new technology that helps you become socially connected. This technology can take the form of instant messaging or an online network th..

  Compress into jpeg format and decompress

How far off are the resultant bytes at the default quality setting? How would you describe the inaccuracies introduced, visually? What quality setting is sufficient to recover the file exactly?

  Design an oo schema for a database application

Design an OO schema for a database application

  What relation between software application process andthread

What is the relation between a software application, process and thread

  Computer network and distributed system

a. Computer Network and Distributed System

  Derive the simplest product-of-sums expression

Derive the simplest product-of-sums expression for the function f(x1,x2,x3,x4)= (x1'+x3'+x4')(x2'+x3'+x4)(x1+x2'+x3') HINT: use consensus property.

  Communications manager for international gadgets

As the new communications manager for International Gadgets, you have come across many examples of ineffective communications, including some older directives that were never carried out, mostly because of their unclear nature.

  Create a regular c program that has an enumeration of months

Create a regular C program that has an enumeration of the months

  Implementation of the system engineering process

What are some of the challenges associated with the day-to-day design process that must be addressed for successful implementation of the system engineering process?

  Compute mttf of the system

Suppose we have an eight CPU computer with four hard drives. MTTF of each cpu is 100000 hours and the MTTF of the hard drive is 50000 hours. What is the mttf of the system?

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