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

Thread: Assignment

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Assignment

    I am really struggling with a programming assignment was wondering can any one on here help me


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Assignment

    You need to post some questions and possibly some code to get help with the assignment.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Assignment

    Would you like to do the assingment for me if i give you the assignment brief? lol

    --- Update ---

    A weather station in Florida is required to produce statistics, including charts, for the average hours of sunshine for each month in 2009, 2010 and 2011.

    You are required to design and write a program to read each month’s average sunshine in hours for the three years, generate a histogram for each year and the statistics. The details are given below:

    • For each year calculate
    o The average hours of sunshine;
    o The month in each year with the greatest average amount of sunshine and the actual amount; and
    o The month in each year with the least average amount of sunshine and the actual amount.

    • Over the three years
    o The average of the sunshine figures for each month.

    Your program should include the following methods:-

     A method enterValues () which takes an array of doubles as a parameter to hold the sunshine figures for one year. It should read the hours of sunshine from the keyboard into the array.

     A method calculateandDisplayResults() which takes an array of doubles holding the sunshine hours for one year and displays the statistics for that year. This method should call other value methods:
     one to return the average sunshine for the year
     one to return the position in the array of the month with the highest average hours of sunshine
     one to return the position in the array of the month with the lowest average hours of sunshine.

     A method monthlyResults () which will take three arrays of doubles representing the hours of sunshine for each year and display the average hours of sunshine for each month.

     A method printChart() which takes an array of doubles as a parameter holding the hours of sunshine for one year and prints a histogram for that year.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Assignment

    Would you like to do the assingment for me if i give you the assignment brief?
    Sorry, we don't do assignments here. We try to help students get their code to work.
    Post you code and any questions you have about it.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Need help with assignment
    By djhunt90 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 13th, 2012, 03:36 PM
  2. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  3. Can someone help with my Assignment
    By damustk in forum Object Oriented Programming
    Replies: 1
    Last Post: March 14th, 2011, 03:32 PM
  4. please help me in my assignment :(
    By asdfg in forum What's Wrong With My Code?
    Replies: 5
    Last Post: May 18th, 2010, 07:59 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM