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

  Perform the arithmetic operations

Convert the following numbers into binary and perform the arithmetic operations in (i) and (ii) using signed binary numbers with 2's complement. Use 7 bits to represent the integer part of decimal numbers and the sign bit. Use three bits to repres..

  Analyze the impact of e-commerce on a business

This assignment provides you with an opportunity to analyze the impact of e-commerce on a business. First, choose ONE of the following case studies that can be located in the Business Source Complete database of the online library:

  Technology drivers for today information systems

Discuss the Business and technology drivers for today's information systems.

  How much square feet of pizza you will have to buy

Your friends can move 20 boxes an hour, but they require one 16 inch (diameter) pizza for this work. Write a function in Python that takes the number of boxes you have and returns how much square feet of pizza you will have to buy. Use the funct..

  Perform in-depth research and provide an explanation

You will perform in-depth research and provide an explanation of how an issue associated with your selected topic relates to the consumption of digital media.

  Classmates about improving efficiency

Can a different kitchen layout save your business? In this week's scenario, Chris and Erica are faced with efficiency challenges at the café. Talk to your classmates about improving efficiency in this week's discussion!

  Creating data encryption standard for ibm

Let us start off with once widely used Data Encryption Standard (DES) which was created by International Business Machines (IBM).

  Provide a substantive response

This writing assignment calls for you to provide a substantive response 1400 words on the subject of managing databases. This paper should follow a logical progression (e.g. introduction, analysis & discussion, and summary & conclusion(s)), be dev..

  Case study of financial analysis and operating ratios

In this assessment you will use the income statement and balance sheet information identified below and evaluate the firm's financial condition based on three profitability ratios: a) Total Margin, b) Return on Assets and c) Return on Equity.  You..

  Explain radio frequency identification technology

Write discussion of radio frequency identification (RFID) technology and Information Technology Infrastructure Library (ITIL) standards.

  Normalize the range such that the transformed range

Normalize the range such that the transformed range has  a mean of 0  and  a standard deviation of 1 - Partition them into three bins by each of the given methods.

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