using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CCroftonFoodOrder
{
class Program
{
static void Main()
{
Console.WriteLine("ItemNum | Description | Price");
Inventory inventory = new Inventory();
inventory.Add(new Item() { ItemNum = 20, Description = "Enchilada", Price = 2.95 });
Order order = new Order();
Console.WriteLine("Enter a food number or description");
}
}
public class Item
{
public string Description;
public double Price;
public int ItemNum;
public override string ToString()
{
return string.Format("{0} | {1} | {2}", ItemNum, Description, Price);
}
}
public class Inventory
{
// manages all items of this inventory
List<Item> items = new List<Item>();
// Adds an Item to the managed items
public void Add(Item item)
{
items.Add(new Item() { ItemNum = 20, Description = "Enchilada", Price = 2.95 });
items.Add(new Item() { ItemNum = 23, Description = "Burrito", Price = 1.95 });
items.Add(new Item() { ItemNum = 25, Description = "Taco", Price = 2.25 });
items.Add(new Item() { ItemNum = 31, Description = "Tostada", Price = 3.10 });
Console.WriteLine();
foreach (Item aItem in items)
{
Console.WriteLine(aItem);
}
}
}
public class Order
{
}
}