Homework instructions said:
the total rainfall for the year
the average monthly rainfall
the month with most rain
the month with least rain
Demonstrate the class in a complete program. (Do not accept negative numbers for monthly rainfall figures)
Read more: Write A Rainfall class that stores the total rainfall for each - JustAnswer http://www.justanswe...l#ixzz1iEmCnbcu
using System;
class RainFall
{
public static void Main()
{
double totalRainFall;
double averageRainFall;
double mostRain;
double leastRain;
totalRainFall();
averageRainFall();
mostRain();
leastRain();
}
public static double TotalRainFall()
{
double[] rainfall = new double [12];
I am stuck from here, i don't know like how am i going to put an array with this, i am so confused on how to approach this. Thank you for any one that helps.
its in c# please, i tried finding it online but its in java and im even more confused
This post has been edited by tlhIn`toq: 01 January 2012 - 12:50 PM
Reason for edit:: code tags

New Topic/Question
Reply



MultiQuote





|