Set inputs as: foodBill cost of the food without taxes and tips totalCost cost of food with taxes and tips noPeople number of people splitting the bill splitCost cost of food with taxes and tips split among number of people tipPercent = 0.15
[Calculate total cost of food inclusive of tip.]
totalCost = (1+ tipPercent) * foodBill [declare how many people are splitting the bill.] [Calculate the cost each person must pay.] splitCost = totalCost/noPeople