i am trying to write a program that lets the user enter four quarterly sales figures for six divisions of any company. The figures should be stored in a two dimensional array. Once the figures are entered the program should display these data for each quarter.
A list of the sales figures by division
each divisions increase or decrease from the previous quarter
the total sales for the quarter
the companys increase of decrease from the previous quarter
The average sales for all divisions that quarter
the division with the highest sales
so far i got this but im stuck on the rest.... any help will be appreciated
using System;
public class qSSTATS
{
public static void Main()
{
double[,] stats = new double[6, 4];
double totalSales = 0.0;
double avgSales = 0.0;
Console.WriteLine("This will now calculate your Total and Average");
Console.WriteLine("sales of the company. Enter your data");
for (int div = 0; div < 6; div++)
{
for (int qtr = 0; qtr < 4; qtr++)
{
Console.Write("Division {0}, Quarter {1}: $", (div + 1), (qtr + 1));
stats[div, qtr] = Convert.ToDouble(Console.ReadLine());
}
Console.WriteLine();
}
}
}