You and a few friends are having a meal at a pizza restaurant, and the server has just given you the bill. Write a function that asks the user how many people there are total and what percent they'd like to tip the server. Then, given the cost of the pizza and the tax rate as a percentage, calculate the total cost of the meal and return how much each person must pay rounded to 2 decimal places. Note that the tax should be calculated and added to the total, and the tip amount should be determined based on the total including tax. Additionally, you may assume that the parameters will always follow the types listed above. The user will always pass in an integer for the number of people, but the tip could be either an int or a float. The percentages given for tax and tip will always be between 0 and 1 inclusive. There will always be at least one person.
Get an answer to your question ✅ “You and a few friends are having a meal at a pizza restaurant, and the server has just given you the bill. Write a function that asks the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » You and a few friends are having a meal at a pizza restaurant, and the server has just given you the bill. Write a function that asks the user how many people there are total and what percent they'd like to tip the server.