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 3 of 3

Thread: JAVA ARRAY

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Location
    KENYA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JAVA ARRAY

    Write a java 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 twodimensional
    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.
    (Note: These methods must all have the appropriate parameters)


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,803
    My Mood
    Mellow
    Thanks
    236
    Thanked 717 Times in 703 Posts

    Default Re: JAVA ARRAY

    Welcome to the forum.

    Please read this topic.

    Note that we don't write code for you, but we'll help you with code you've written.

    Good luck!

  3. #3
    Junior Member
    Join Date
    Nov 2013
    Location
    KENYA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAVA ARRAY

    Ok Greg,thanks

Similar Threads

  1. Java 1.4 Array issues - controlling array size for dynamic usage
    By doonan79 in forum Collections and Generics
    Replies: 5
    Last Post: June 18th, 2013, 11:53 AM
  2. Replies: 4
    Last Post: May 28th, 2013, 11:24 PM
  3. Replies: 2
    Last Post: January 14th, 2013, 02:22 PM
  4. Replies: 4
    Last Post: November 14th, 2011, 09:00 PM
  5. Java Array
    By lary in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 12th, 2011, 09:29 AM