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

  Design of the website for mobile devices

Describe the differences in developing user interfaces for different application environments - compare and contrast the different types of interactive environments.

  How far could it transmit a signal

A step-index multimode fiber has a modal dispersion of about 30 ns/km. Using the formula for maximum data rate for a given dispersion, about how far could it transmit a signal at 1Gbit/s?

  Assignment preparation

Assignment Preparation Activities include completing independent student reading and research. Assignment

  Current design model of it

In the current design model of IT service provision at NSI, the service desk function is provided in-house by TAFE employees. Consider the option of outsourcing the service desk.

  A user deliberately or accidently interrupts a print job

In some instances, a user deliberately or accidently interrupts a print job

  Show that the frictional relationship between belt tensions

Show that the frictional relationship between the belt tensions, the coefficient of friction , and the angular contacts and for the V-belt is . T2 = T1emb/sin(a/2)

  Problem regarding the constrained optimization

A company produces and sells four grades of industrial solvents - A, B, C, and D. The selling price per gallon of each grade of solventis $6.40, $5.00, $4.20, and $3.50 respectively.  Because of demand limitations, the company can sell at most 100..

  Speculate on the role of the cio in a specific industry

q1. with a focus on enterprise hardware software services and human capital list and describe three advantages of green

  Contrast theories of absolute and comparative advatages

Compare and contrast theories of absolute and comparative advatages. Explain Porter's "Diamond" model of national competitive advantage. Briefly describe some of the main instruments of trade policy that countries use to interfere with free trade.

  E-commerce for a building supply company

Capstone Project about E-Commerce for a Building Supply Company. It will consist of web-based front-end allowing customers to place orders and the store owner to see relevant views of the pending orders, together with a backend database in whi..

  The external services installations

The suggested word limit for the main body of the report is 3,000 for guidance (Excluding Abstract, Conclusion, Appendices, References & Bibliography). For section (1) You need to consider for each component part of construction chosen: Elements ..

  Consider a memory system with a level

Consider a memory system with a level 1 cache of 32 KB and DRAM of 512 MB with the processor operating at 1 GHz. The latency to L1 cache is one cycle and the latency to DRAM is 100 cycles.

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