public partial class Program
public static void Main()
string[] firstname = new string[3];
string[] lastname = new string[3];
string[,] items_name = new string[3, 3] { { "Book", "Car", "Plane" }, { "Shoes", "Dress", "Coat" }, { "Jacket", "Pants", "Razor" } };
Double[,] items_prize = new Double[3, 3] { { 3.00, 35000, 250000 }, { 45.00, 60.00, 100.00 }, { 110, 25.00, 12.52 } };
int[,] items_quantity = new int[3, 3] { { 3, 1, 1 }, { 2, 1, 1 }, { 1, 3, 2 } };
for (int i = 0; i < firstname.Length; i++)
Customer custobj = new Customer(firstname[i],lastname[i]);
for (int j = 0; j <(items_name.Length/firstname.Length); j++)
Order orderobj=new Order(items_name[j,i],items_prize[j, i],items_quantity[j, i]);
orderobj.display_order();
Console.WriteLine("Marking Scheme");
Console.WriteLine("--------------");
Console.WriteLine("Customer Class : " + firstname.Length);
Console.WriteLine("Order Class : " + items_name.Length/firstname.Length);
Console.WriteLine("Display (Customer and Order) : " + 4);
Console.WriteLine("Total : " + (firstname.Length + (items_name.Length/firstname.Length)+4));
public Customer(string First_Name,string Last_Name)
this.FirstName=First_Name;
public void display_cust()
Console.WriteLine("{0} {1}",FirstName,LastName);
public string Description;
public Order(string description,double price,int quentity)
this.Description=description;
public void display_order()
Console.Write("{0} - ${1} - {2}", Description,Price,Quentity);