Uses a 2-d array to store the highest and lowest temperature

Assignment Help JAVA Programming
Reference no: EM13163515

Write a program that uses a 2-D array to store the highest and lowest temperatures for each montjh 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 with their appropriate parameters:

a) getData - This method reads and stores the data in the 2-D array.

b) averageHigh - This method calculates and returns the average high temp of the year

c) averageLow - This method calculates and returns the average low temp of the year

d) indexHighTemp - This method returns the index of the highest temp in the array

e) indexLowTemp - This method returns the index of the lowest temp in the array

Reference no: EM13163515

Questions Cloud

Define what mass of sucrose should be combined : What mass of sucrose should be combined with 514 g of water to make a solution with an osmotic pressure of 8.85 atm at 295 K? (Assume the density of the solution to be equal to the density of the solvent.)
One search function : One search function will use a sentinel to mark the end of the array. The other search function will use an array length (maximum legal index into the array) to determine when to exit the search loop. Both functions must return true when the searc..
What is the significance of the subjective data : What is the significance of the subjective and objective data provided with regard to follow-up diagnostic/laboratory testing, education, and future preventative care? Provide rationale for your answer.
Find calories and joules lost : find calories and joules lost when 75.0 g of water H20 cools from 86.4 degrees celsius to 2.1 degrees celsius.
Uses a 2-d array to store the highest and lowest temperature : Write a program that uses a 2-D array to store the highest and lowest temperatures for each montjh 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 ..
. write down each interaction with smartphone : Consider your smartphone as a system and use its calendar to set a calendar event with a reminder for your birthday. Write down each interaction between you and your smartphone as a scenario. Record all the interactions, including any feedback the sm..
Following class definition : Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):
Primary comparative financial statements : Based upon your analysis in part a, does teh company's liquidity appear to have increased or decreased during the most recent fiscal year?
Ordering a burrito at a fast food mexican restaurant : Draw an activity diagram for ordering a burrito at a fast food mexican restaurant (e.g. Chipotle or Qdoba)

Reviews

Write a Review

JAVA Programming Questions & Answers

  Display student details and classes in applet

Display student details and classes they have enrolled in Applet. The Applet should have following features. Update and View.

  Write a method called printlevel

Write a method called printLevel that takes an integer n as a parameter and that prints the values at level n from left to right. The values should be printed one per line.

  Shows the users name and program name

Java program, the program has a page that shows the users name and program name. a second jpanel that shows 4 buttons (circle square rectangle and oval) the problem i am having is that my program is not dropping where i click and the shapes are not s..

  Create a project in eclipse

Create a new project

  Java program for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

  Write methods in java

1. int countVowels (String s) That for a given string s, return number of vowels in s.

  Java application to permit user to enter ten numbers

Write down Java application which permits a user to enter 10 numbers (double precision) into the array and then sorts and displays numbers from lowest to highest.

  Java application to declare and create a vector

Write a java application that perform the following task: declare and create a vector with initial size of 10, increment of 2

  Can linear search algorithm be encoded using recursion

Determine the average amount of time people spend waiting for tables and provide examples from the "real world" of unsorted lists, sorted lists, indexed lists, lists that permit duplicate elements, and lists that do not permit duplicate elements

  Represent one book in java

Represent one book in java

  Prepare a java simulation program

Given a hash function h, prepare a java simulation program to determine each of the subsequent quantities after 0.8*tablesize random keys have been generated. The keys should be random integers.

  Displays every perfect number from 1 through 1000

Write an application that displays every perfect number from 1 through 1000. A perfect number is one that equals the sum of all the numbers that divide evenly into it.

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