1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Montano1993 [528]
3 years ago
11

Write a split_check function that returns the amount that each diner must pay to cover the cost of the meal. The function has 4

parameters: bill: The amount of the bill. people: The number of diners to split the bill between. tax_percentage: The extra tax percentage to add to the bill. tip_percentage: The extra tip percentage to add to the bill.
Computers and Technology
1 answer:
MrRa [10]3 years ago
7 0

Answer:

def split_check(bill, people, tax_percentage, tip_percentage):

   tax = bill * tax_percentage

   tip = bill * tip_percentage

   

   total_bill = bill + tax + tip

   

   return total_bill / people

Explanation:

Create a function called split_check that takes four parameters, bill, people, tax_percentage, and tip_percentage

Inside the function, calculate the tax, multiply bill by tax_percentage. Calculate the tip, multiply bill by tip_percentage. Calculate the total_bill, sum bill, tax, and tip. Finally, return the total_bill / people which gives the amount each diner needs to pay.

You might be interested in
Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same pack
Lelu [443]

Answer:

D) All the mentioned

Explanation:

public: This access modifier allows access from all classes in the program

protected: Means only classes within the same package or sub-classes (inheritance) can access members of the class

No Modifier: Omiting the modifier sets a class to the default. Which implies only classes in the same package can access members of the class.

The given question refers to class members in the same package so any these three access modifiers can be used.

6 0
3 years ago
What does it mean to prioritize tasks
sleet_krkn [62]

it means to organize or complete things in order from important to least important (give brainliest answer if other people answer please)

8 0
4 years ago
Read 2 more answers
Which of the following not a hardware componet​
erma4kov [3.2K]

Answer:

antivirus.......hope this answers your question

3 0
3 years ago
Describe how one device can send a bit to another device. Why is it necessary to have a common language for communication across
kotykmax [81]

Answer:

The answer to this question as follows:

Explanation:

The serial communication processes, in which a device uses a serial port, that may send a bit of data to one device to another device.

In communication across devices, it is necessary to use common language, because It helps to understand the thing more easily, This process used in the same equipment, that provides a common language or interpreter, which is used in a common language.  

7 0
3 years ago
When you hide a worksheet, its ______ disappears, however the worksheet itself remains part of the workbook until you select to
Reptile [31]
Cell is the possible answer
8 0
3 years ago
Other questions:
  • If you have a list of words that you wish to make into a bulleted list, you must first highlight or ________ the words with your
    14·1 answer
  • GAMER OYUNCU KOLTUĞU % YERLİ
    6·1 answer
  • The computers in the administrative offices of the four schools throughout the district are networked to enable employees to acc
    8·1 answer
  • Which of the following is NOT a semantic reason for using header tags
    7·1 answer
  • Mencione algunos ejemplos en donde sean utilizadas las máquinas de aire comprimido. Justifique su respuesta.
    7·1 answer
  • ―Connectivity is Productivity‖- Explain the statements.
    8·1 answer
  • An eReader has a 956-pixel x 1290-pixel grayscale display with each pixel able to display 32 shades of gray. What is the KiB siz
    9·1 answer
  • Write the code for the method getNewBox. The method getNewBox will return a GiftBox that has dimensions that are m times the dim
    14·1 answer
  • Why star topology is more reliable than bus or ring topologies
    7·2 answers
  • Which agency motors the sale and registration of vehicles and vessels within the state
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!