need help with void method
I need help with developing an output menu of the retail items below. I would like it to include a part where if you type zero, it will include all items, or if you hit 99, it will exit the menu. It should also include a way to prompt the user to make a selection. Any ideas?
classProgram{
staticvoid Main(string[] args){
//Gum Retail Item
string ItemName;decimal ItemCost;decimal ItemPrice;string Category;string ItemCode;decimal ItemWeight;//figure out the valuesItemName =
"Gum";ItemCost = 0.32m;
ItemPrice = 0.50m;
ItemWeight = 2.0m;
Category =
"Candy";ItemCode =
"345A";//Snickers Retail Itemstring ItemName1;decimal ItemCost1;decimal ItemPrice1;string Category1;string ItemCode1;decimal ItemWeight1;//figure out the valuesItemName1 =
"Snickers";ItemCost1 = 0.62m;
ItemPrice1 = 0.80m;
ItemWeight1 = 3.5m;
Category1 =
"Candy";ItemCode1 =
"256A";//pop retail itemstring ItemName2;decimal ItemCost2;decimal ItemPrice2;string Category2;string ItemCode2;decimal ItemWeight2;//figure out the valuesItemName2 =
"Pop";ItemCost2 = 0.90m;
ItemPrice2 = 1.00m;
ItemWeight2 = 8.5m;
Category2 =
"Bevrge";ItemCode2 =
"656B";//cigarrettes Retail Itemstring ItemName3;decimal ItemCost3;decimal ItemPrice3;string Category3;string ItemCode3;decimal ItemWeight3;//figure out the valuesItemName3 =
"Cigarrettes";ItemCost3 = 2.50m;
ItemPrice3 = 6.00m;
ItemWeight3 = 4.5m;
Category3 =
"Smokes";ItemCode3 =
"989C";//Chips retail Itemstring ItemName4;decimal ItemCost4;decimal ItemPrice4;string Category4;string ItemCode4;decimal ItemWeight4;//figure out the valuesItemName4 =
"Chips";ItemCost4 = .50m;
ItemPrice4 = 0.99m;
ItemWeight4 = 1.5m;
Category4 =
"Food";ItemCode4 =
"156A";Console.WriteLine(ItemName +" " +"$" + ItemCost +" " +"$" + ItemPrice +" " +" " +" " + Category +" " +" " +" " + ItemCode +" " +" " +" " + ItemWeight +"oz" );Console.WriteLine(ItemName1 +" " +"$" + ItemCost1 +" " +" " +"$" + ItemPrice1 +" " +" " +" " + Category1 +" " +" " +" " + ItemCode1 +" " +" " +" " + ItemWeight1 +"oz");Console.WriteLine(ItemName2 +" " +"$" + ItemCost2 +" " +"$" + ItemPrice2 +" " +" " +" " +"" + Category2 +" " +" " +"" + ItemCode2 +" " +" " +" " + ItemWeight2 +"oz");Console.WriteLine(ItemName3 +" " +"$" + ItemCost3 +" " +"$" + ItemPrice3 +" " +" " +" " +"" + Category3 +" " +" " +"" + ItemCode3 +" " +" " +" " + ItemWeight3 +"oz");Console.WriteLine(ItemName4 +" " +"$" + ItemCost4 +" " +"$" + ItemPrice4 +" " +" " +" " + Category4 +" " +" " +" " + ItemCode4 +" " +" " +" " + ItemWeight4 +"oz");}

