Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java program. plz help?

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Java program. plz help?

    In one program file, write a program that uses a two-dimensional array to store the highest and lowest temperatures of each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following methods:

    getData: This method reads and stores data in the two-dimensional array.
    averageHigh: This method calculates and returns the average high temperature for the year.
    averageLow: This method calculates and returns the average low temperature for the year.
    indexHighTemp: This method returns the index of the highest high temperature in the array.
    indexLowestTemp: This method returns the index of the lowest temperature in the array.

    i am taking an online java class, and m not getting anything, how do i even begin the program.. if any one plese code this by using java


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Java program. plz help?

    Quote Originally Posted by java007 View Post
    In one program file, write a program that uses a two-dimensional array to store the highest and lowest temperatures of each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following methods:

    getData: This method reads and stores data in the two-dimensional array.
    averageHigh: This method calculates and returns the average high temperature for the year.
    averageLow: This method calculates and returns the average low temperature for the year.
    indexHighTemp: This method returns the index of the highest high temperature in the array.
    indexLowestTemp: This method returns the index of the lowest temperature in the array.

    i am taking an online java class, and m not getting anything, how do i even begin the program..
    Break the big problem down into small consituent steps and try to solve each small step one at a time. Have a look at the Java tutorials if you need help on a specific part of your code.

    ... if any one plese code this by using java
    This is not allowed nor appreciated on this site. Please do not try to ask this again. Consider this a warning.

Similar Threads

  1. plz give me java program for this code
    By rajesh6866 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 3rd, 2012, 01:59 PM
  2. there is an exception in my program plz correct it.
    By nikita in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 15th, 2012, 04:42 AM
  3. plz help me in Bank program
    By Asom in forum Java Theory & Questions
    Replies: 1
    Last Post: February 14th, 2012, 08:17 PM
  4. (URGENT) Plz help me with the black jack program.
    By diogo in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 4th, 2011, 04:08 AM
  5. Replies: 5
    Last Post: December 13th, 2009, 07:10 PM

Tags for this Thread