Pizza Parlor

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PizzaParlor
{
class PizzaParlor
{
static void Main(string[] args)
{
int grossBill;
int bill;
double parlorCharge = 0.10;
double salesTax = 0.04;
double totalBill;
double change;

Console.WriteLine("The gross bill of the costumer: ");


grossBill = Convert.ToInt32(Console.ReadLine());

Console.WriteLine("The amount given by the customer: ");


bill = Convert.ToInt32(Console.ReadLine());

totalBill = grossBill + (grossBill * (parlorCharge + salesTax));


change = bill - totalBill;

Console.WriteLine("Total Bill: {0}", totalBill);


Console.WriteLine("Change: {0}", change.ToString("##.##"));
Console.ReadLine();
}
}
}

You might also like