namespace Homework5
{
internal class Program
{
static void Main(string[] args)
{
double vendingOne = 1;
double vendingTwo = 2;
double vendingThree = 1.5;
double sodaQuantity = 0;
double cookieQuantity = 0;
double chipQuantity = 0;
double totalOne = (sodaQuantity*vendingOne);
double totalTwo = (cookieQuantity*vendingTwo);
double totalThree = (chipQuantity*vendingThree);
while (true)
{
Console.WriteLine(" OSU Snacks menu");
Console.WriteLine("Select 1 for Soda --> price = $" + vendingOne);
Console.WriteLine("Select 2 for Cookie --> price = $" + vendingTwo);
Console.WriteLine("Select 3 for Chips --> price = $" + vendingThree);
Console.WriteLine();
string userInput = Console.ReadLine();
double numberSelect = Convert.ToDouble(userInput);
if (numberSelect == 1)
{
Console.WriteLine("You chose soda. How many do you want?");
string quantitySelect = Console.ReadLine();
double qsoda = Convert.ToDouble(quantitySelect);
sodaQuantity += (int)qsoda;
Console.WriteLine("Press y if that is all for today");
string yesNo = Console.ReadLine();
if (yesNo == "n")
continue;
if (yesNo == "y")
{
Console.WriteLine("Your total is $" + sodaQuantity*vendingOne);
Console.WriteLine();
break;
}