I need help to solve this problem . Am new and a starter , but well am tring my hand at it by practising.
Am working on making a 3 dimensional array using C#. I have 3 salers in a country (saler 1, 2, and 3.) Operating in 3 regional areas, region A, B, and C)and lastly commodities , cosmetics 70$ per each, books 10$, and vegetables 68$, ).
I would like to computer and report in 3 dimensional array of the activities in the three regions, thats
who sold what and how many different commodities plus totalprise of commodities , and then total sold per each salers , and if possible all total of commodities sold by all sales per each ragion.
But I Know and can do this the easy way by building a database in Microsoft Access and tabulate.
But I want to learn to do it from scrach using c# to the console application. Can you help me.
This is what iI did so far , but my having haedache, cos its not working for me. I know its confusing but I hope you get my idaes of the question. The data types are also confusing for me cos the rule that elements must be of the same date type makes it even more diffcult , so type casting has to be applied somewhere but where and how.
please help me with a sample code. so i can use as a template.
My code;
using System;
using System.Collections.Generic;
using System.Text;
namespace 3DimensionArray
{
class Program
{
static void Main(string[] args)
{
double[][][] sales = new double[3][3][3];
for (int i =1; i <= double.Length; i++)
{
enter region = O;
enter commodities = 2;
enter saler = 1;
prise = 500$;
saler[r][c][s]= new saler [r][c][s] + pris;
}
}
}
}