CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2013
    Posts
    1

    Exclamation Help with Arrays

    I need a lot of help with java. I am terrible. Someone please help me with the requirements and code for this project. PLEASE!!!!!!

    1. Write a class named RainfallCollection, that can be used to create a collection of 12 monthly rainfall measurements
    Following instance methods required:
    -Method that will calculate and return the total of the rainfall measurements.
    -Method that will calculate and return the average of the rainfall measurement for the year.
    -Method that will calculate and return the minimum of the monthly rainfall measurements.
    -Method that will calculate and return the maximum of the monthly rainfall measurements.
    -Method that will return the month with the least amount of rain.
    -Method that will return the month with the most amount of rain


    2. Write a class named YearlyRainfall that will:
    -Instantiate a RainfallCollection object.
    -Populate the RainfallCollection with data for each monthly measurement.
    -Menu driven loop that allows the user the following options:
    -Display the total of the rainfall measurements
    -Display the average rainfall measurement.
    -Display the minimum monthly rainfall measurement.
    -Display the maximum monthly rainfall measurement.
    -Display the month with the least amount of rain.
    -Display the month with the most amount of rain.
    -Exit

    Its written as 1 and 2 on our requirements but I'm not sure if they are supposed to go in the same program? Please help!

  2. #2
    Join Date
    Jun 2011
    Posts
    12

    Re: Help with Arrays

    Your work so far?

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Help with Arrays

    cheercutie, usually we do not do homework for members, if they haven't made any effort themselves. If you can show us your progress thus far and with what and where you are struggling, we can assist

  4. #4
    Join Date
    Oct 2013
    Posts
    13

    Re: Help with Arrays

    Why dont you try yourself..??

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured