public static void Main()
double [] pricesArray = new double [] {29.99, 49.99, 199.99, 499.99, 549.99, 649.99, 149.99, 299.99, 499.99, 599.99};
string [] deviceArray = new string [] {"1: Phone; BPCM; Compact", "2 : Phone; BPSH; Clam shell", "3: Phone; RPSS; RoboPhone - 5-inch screen & 64G", "4: Phone; RPLL; RoboPhone - 6-inch screen &256G", "5: Phone; YPLS; Y-Phone.S- 6-inch screen & 64G", "6: Phone; YPLL; Y-Phone.D- 6-inch screen & 256G", "7: Tablet; RTMS; RoboTab- 8-inch screen & 64G", "6: Tablet; RTLM; RoboTab- 10-inch screen & 128G", "8: Tablet; YTLM; Y-Tab.s- 10-inch screen & 128G", "9: Tablet; YTLM; Y-Tab.s- 10-inch screen & 256G"};
Console.WriteLine(deviceArray[i], pricesArray[i]);
for (i = 0; i <= deviceNumber; i++)
Console.WriteLine("Please Input your choice out of the following numbers 1-10:");
int cDevice = Convert.ToInt32(Console.ReadLine());
if(cDevice < 0|| cDevice > 10)
Console.WriteLine("Please re-enter");
Device = cDevice + Device;
totalCost = pricesArray[Device]*0.1+totalCost;
totalCost = totalCost + totalCost;
totalCost = totalCost + pricesArray[Device];
Console.WriteLine("invalid input. Please re-enter");
Console.WriteLine("Would you like a Sim Free or pay as you go");
Console.WriteLine("please enter: 1 for Sim Free|| 2 for pay as you go");
cContract = cContract + Convert.ToInt32(Console.ReadLine());
totalCost = totalCost + 9.99;
Console.WriteLine("invalid input. Please re-enter");
Console.WriteLine("what case would you like Standard or Luxury:");
Console.WriteLine("1 : $19.99");
Console.WriteLine("2 : $15.99");
cCase = cCase + Convert.ToInt32(Console.ReadLine());
totalCost = totalCost + 9.99;
totalCost = totalCost + 15.99;
Console.WriteLine("invalid input. Please re-enter");
Console.WriteLine("what charger would you like home or car:");
Console.WriteLine("1 : $0");
Console.WriteLine("2 : $50");
cCharger = cCharger + Convert.ToInt32(Console.ReadLine());
totalCost = totalCost + 50;
Console.WriteLine("invalid input. Please re-enter");
Console.WriteLine("Would you like another device: yes||no");
if(Console.ReadLine()== "no")
if(Console.ReadLine()== "yes")
Console.WriteLine("this costed you{0}", totalCost + "$");