subject
Computers and Technology, 21.01.2020 04:31 KallMeh

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.

function name : split_bill()
parameters : pizza_cost (int), tax_percent (float)
returns: total_cost (float)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, haydonmetzger
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data. b. define the requirements for backing up data. c. define the requirements for storing data. d. define the requirements for transmitting data.
Answers: 2
image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, smariedegray
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
image
Computers and Technology, 22.06.2019 19:00, alyssashae1818
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
You know the right answer?
You and a few friends are having a meal at a pizza restaurant, and the server has just given you the...

Questions in other subjects:

Konu
Social Studies, 11.12.2021 02:10
Konu
Mathematics, 11.12.2021 02:10
Konu
Mathematics, 11.12.2021 02:10