Answer:
using System;
public class Test
{
public static void Main()
{
// your code goes here
Console.Write("\\Enter the total bill : ");
double totalbeforetax = Convert.ToDouble(Console.ReadLine());
Console.Write("\\Enter the tip percentage(10% or 15%) : ");
double tip = Convert.ToDouble(Console.ReadLine());
double totalwithtax = totalbeforetax*(1+0.09);
double tipamount = tip*totalwithtax/100;
double total = totalwithtax + tipamount;
Console.WriteLine("\\Total bill without tax: "+totalbeforetax);
Console.WriteLine("\\Total bill with 9% tax: "+totalwithtax);
Console.WriteLine("\\Tip Amount: "+tipamount);
Console.WriteLine("\\Total bill with tax and tip: "+total);
}
}
Step-by-step explanation: