Program that uses a two-dimensional array

Assignment Help Basic Computer Science
Reference no: EM131051381

Java Programming

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: EM131051381

Questions Cloud

Why is it important to pretest a problem for generalization : Discuss the reasons why including a pretest may affect the ability to generalize results.
Massively multiplayer online role-playing games : In a virtual world (VW) of massively multiplayer online role-playing games (MMORPGs), collaboration and communication are provided through the Internet between MMORPG-ready devices such as the Microsoft Xbox, and Sony PlayStation, and by using the..
Identifying information about the children : Summary of your observations, including the age group, how the development theories were implemented, and how the children re: Do not include any identifying information about the children.
To invest it to meet two financial goals : Imagine you inherited $50,000 and you want to invest it to meet two financial goals: ( a) to save for your wedding, which you plan to have in two years, and ( b) to save for your retirement a few decades from now. How would you invest the money? ..
Program that uses a two-dimensional array : 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 ..
Yield to maturity and future price : Yield to maturity and future price A bond has a $1,000 par value, 15 years to maturity, and a 8% annual coupon and sells for $1,080. Assume that the yield to maturity remains constant for the next 5 years. What will the price be 5 years from today?
Determine what type of log files to review : Describe what techniques you will use to begin the investigation, Identify who should be interviewed first and Determine what type of log files to review
Describe possible deductions and the specific information : Describe the possible deductions and the specific information you may need to complete their taxes on these issues. Also, explain how these issues may affect their tax bracket.
Shares of stock will be outstanding after the split : Della's Pool Halls has 12,000 shares of stock outstanding with a par value of $1 per share and a market price of $39 a share. The firm just announced a 4-for-3 stock split. How many shares of stock will be outstanding after the split?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write the following sum using summation sigma notation

Write the following sum using summation (sigma) notation

  Plaigarism and the commands explanation

The assignment subject is about System security which should be done in the Linux environment and should be in details according to the criteria given, there should not be any plaigarism and the commands explanation should be in won words, so plz ..

  What happens if the best effort is not good enough

IP is described as "best effort delivery service". What exactly does this mean?....What happens if the "best effort" isn't good enough?

  How many block of main memory is needed-direct mapped cache

Suppose a computer using direct mapped cache has 2^32 words of main memory and a cache of 1024 blocks, where each cache block contains 32 words. How many block of main memory are there?

  Develop a system vision document

Develop a system vision document for Especially for You Jewelers, detailing the overall vision or plan for the new direct sales and accounting system - Propose at least system capabilities for the company.

  Write a java for file processing according to rules

The file is read into memory, all of it in one buffer, and the buffer is reversed, then the file is overwritten. For simplicity, we may assume that the maximum size of the file is 200000 bytes. If no file was selected an error message is displayed..

  Design a program that computes pay for employees

Draw a flowchart AND write pseudocode to design a program that computes pay for employees. Allow a user to continuously input employees' names until an appropriate sentinel value is entered.

  Write a program that simulates an xor operation

For example, if the input is 1011, then the output will be 1. You can assume that the input word is guaranteed to contain only 0s and 1s.

  A programming language

What is a list of characters used by a programming language?

  Manipulate the dom on a web page.

In your own words, give a practical example of why you might want to traverse or manipulate the DOM on a Web page. What task would you want accomplish?

  The best strategy to take when testing written code

What do you think is the best strategy to take when testing written code? Explain.

  Complete set of logic gates

Do 2-input AND gates which have one input inverted form a complete set of logic gates? Rationalize your answer.

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