public static void Main()
Console.WriteLine("Welcome to schoolstoreys");
Console.WriteLine("How many rulers would you like to buy?");
byte ruler = byte.Parse(Console.ReadLine());
decimal price1 = ruler * 1.50M;
Console.WriteLine("You spent " + price1.ToString("C")+ " on rulers" );
Console.WriteLine("---------------------------------");
Console.Write("And how many rolls of tape? ");
byte tape = byte.Parse(Console.ReadLine());
decimal price2 = tape * 3.23M;
Console.WriteLine("You spent " +price2.ToString("C") + " on rolls of tape");
Console.WriteLine("---------------------------------");
Console.WriteLine("Alright how many markers?");
byte marker = byte.Parse(Console.ReadLine());
decimal price3 = marker * 4.12M;
Console.WriteLine("You spent " +price3.ToString("C") + " on markers");
Console.WriteLine("---------------------------------");
Console.WriteLine("Finally how many notebooks would you like?");
byte notebooks = byte.Parse(Console.ReadLine());
decimal price4 = notebooks * 1.23M;
Console.WriteLine("You spent " + price4.ToString("C") + " on notebooks");
decimal subtotal = price1 + price2 + price3 + price4;
Console.WriteLine("---------------------------------");
if (subtotal>1 && subtotal <=50)
decimal shipping = 7.99M;
Console.WriteLine("The shipping fee will be "+ shipping.ToString("C"));
Console.WriteLine("-----------------------------");
Console.WriteLine("Your subtotal is " + subtotal.ToString("C"));
Console.WriteLine("---------------------------------");
decimal tax = subtotal * 8.625M/100M;
decimal taxed = subtotal + tax;
decimal gtotal = taxed + shipping;
Console.WriteLine("Your total after tax and shipping is " + gtotal.ToString("C"));
else if (subtotal>50&&subtotal<=100)
decimal shipping = 9.99M;
Console.WriteLine("The shipping fee will be " + shipping.ToString("C"));
Console.WriteLine("-----------------------------");
Console.WriteLine("Your subtotal is " + subtotal.ToString("C"));
Console.WriteLine("---------------------------------");
decimal tax = subtotal * 8.625M/100M;
decimal taxed = subtotal + tax;
decimal gtotal = taxed + shipping;
Console.WriteLine("Your total after tax and shipping is " + gtotal.ToString("C"));
Console.WriteLine("The shipping fee will be " +shipping.ToString("C"));
Console.WriteLine("-----------------------------");
Console.WriteLine("Your subtotal is " + subtotal.ToString("C"));
Console.WriteLine("---------------------------------");
decimal tax = subtotal * 8.625M/100M;
decimal taxed = subtotal + tax;
decimal gtotal = taxed + shipping;
Console.WriteLine("Your total after tax and shipping is " + gtotal.ToString("C"));
Console.WriteLine("You need to spend money");
Console.WriteLine("Would you like to purchase more? (y/n)");
string choice = Console.ReadLine();
if (choice == "Y" || choice == "y")
Console.WriteLine("Okay!");