public class TipCalculator
public static void Main()
Console.WriteLine("How much did the food cost?");
double foodSubtotal = Convert.ToDouble(Console.ReadLine);
Console.WriteLine("Rate the quality on a scale of one to ten");
int rating = Convert.ToInt32(Console.ReadLine);
double foodTax = foodSubtotal * 0.06;
tipAmount = 0.15 * foodSubtotal;
Console.WriteLine("Amount spent on food: " + foodSubtotal);
Console.WriteLine("Tax Amount: " + foodTax);
Console.WriteLine("Suggested tip Amount: " + tipAmount);
Console.WriteLine("Total cost is: " + foodTax);