using System.Collections.Generic;
using System.Threading.Tasks;
namespace ConsoleApplication2
public Orders[] customerOrders = new Orders[3];
public int orderCount = 0;
public void storeOrderInformation(string item, decimal price, int qty)
customerOrders[orderCount] = new Orders();
customerOrders[orderCount].item = item;
customerOrders[orderCount].price = price;
customerOrders[orderCount].quantity = qty;
public void DisplayCustomerInformation()
Console.WriteLine("Customer name: {0} {1}", this.firstName, this.lastName);
Console.WriteLine("Orders");
foreach (Orders x in this.customerOrders)
Console.WriteLine("Item: {0}, Price: {1}, Quantity: {2}", x.item, x.price, x.quantity);
public static void Main()
customers = new Customer[3];
customers[0] = new Customer();
customers[1] = new Customer();
customers[2] = new Customer();
customers[0].firstName = "Joe";
customers[0].lastName = "Smith";
customers[0].storeOrderInformation("Book", 3.00m, 5);
customers[0].storeOrderInformation("Car", 13000.00m, 1);
customers[0].storeOrderInformation("Plane", 223000.00m, 1);
customers[1].firstName = "Sally";
customers[1].lastName = "Jones";
customers[1].storeOrderInformation("Shoes", 55.00m, 5);
customers[1].storeOrderInformation("Dress", 130.00m, 2);
customers[1].storeOrderInformation("Coat", 100.00m, 1);
customers[2].firstName = "Rick";
customers[2].lastName = "White";
customers[2].storeOrderInformation("Jacket", 155.00m, 1);
customers[2].storeOrderInformation("Pants", 86.00m, 2);
customers[2].storeOrderInformation("Razor", 13.00m, 10);
foreach (Customer x in customers)
x.DisplayCustomerInformation();
public static void ProcessPayment()
Console.WriteLine("Enter Payment Method...");
Console.WriteLine("1 for Master Card \n2 for Visa Card \n3 for Paypal");
int MasterCardPayment = 0;
return MasterCardPayment;
int MasterCardPayment = 0;
return MasterCardPayment;
int MasterCardPayment = 0;
return MasterCardPayment;