Task
Ask for the total price of the bill, then ask how many diners there are. Divide the total bill by the number of diners and show how much each person must pay.
I need code for this on Repl.it python

Answers

Answer 1

Answer:

Please see the full code in explanation

Explanation:

#This is a console program

def bill_calculator():

print("Enter the Total value of the bill:\n")

bill_total = float(input())

print("Enter total number of dinners:\n")

total_dinner = int(input())

bill_per_person = bill_total / total_dinner

result = ("Bill total: {} \n"

"Total dinners: {} \n"

"Bill per person: {} ").format(bill_total,total_dinner, bill_per_person)

print(result)

if __name__ == '__main__':

bill_calculator()


Related Questions

Hey should I get a r()blox gift card if so what amount 5 dollars 10 or 100

Answers

Answer:

yes you should get a 10 bc it not to much and u can still get something cool

Lol lets make a new trend on here,
░░░░░█▐▓▓░████▄▄▄█▀▄▓▓▓▌█ Help
░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█ Doge
░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█ Take
░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ Over
░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█ Brainly
▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ Copy
█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█ And
█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█ Paste
▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌
▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌DO IT.
█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓▐

Answers

Answer: 9k

Explanation:

Answer:

LESSSSSSS GOOOOOOOOOOOOOOOOOOOO I will do the trend and give u credit too (can i have brainlest plz? :D )

Explanation:

how many bits and bytes are occupied by six long variables​

Answers

Answer:

24 bytes = 192 bits

Explanation:

A long is typically 4 bytes or 4*8 = 32 bits

However, on some 64 bit systems, a long is defined as 64 bits so the answer is not universal.

What does a driver do?

Answers

A driver is a piece of software that allows things such as a keyboard, mouse, hard drive, etc. connect to a computer. Normally found on the manufactures website, you can update drivers with advanced and modern technology. Or, if a device is really old you can download a driver to allow that device to connect to a PC.

Drag the system component on the left to the device or program that fits with the system component.

Answers

Answer:

A. Back up software - Utility software

B. Printer - Device drivers

C. Camera - Firmware

D. Television - Firmware

E. Games console - Firmware

F. Antivirus software - Utility software

G. Disk Cleaner - Utility software

H. Video Card - Device drivers

Explanation:

Computer system components are the physical or hardware and software parts of the device. It is a combination of system software like utility software, device drivers and firmware, application software, and the hardware components and kernel.

If the ___________ cable damages the entire system/network will fail. * 1 point Drop Line Terminator Backbone None of the above

Answers

Answer:

The answer is "Backbone".

Explanation:

The backbone cables crossover connectors, intermediate and main interconnections, electrical inductions and bug fix cables, and jumping wires are used for cross-connecting the backbone with the backbone. Cabling between buildings also involves backbone cables. This interconnection of rooms, entry facilities, equipment rooms, or buildings, that's why its entire system/network would then fail if the backbone cord harms it.

Geraldo would like to compare two areas of text, Text1 and Text2, to each other. What steps should he take?
od
select Text1, hit F1, click. "Compare to another selection," select Text2
select Text1, hold Shift+F1, click "Compare to another selection," select Text2
hold Shift+F1, select Text1, hold Shift+F1 again, select Text2
Ohit F1, select Text1, hit F1 again, select Text2

Answers

i think the second one

Which programming language is often used for embedded programs in electronic devices?
SQL

Microsoft Excel

Python

HTML

Answers

I think the answer is Python

Answer:

Python is the only option listed that is used for embedded programs.

Explanation:

Common languages for embedded systems are C, C++, JavaScript, and Python.

SQL is used to gather data from a site or database. HTML is a markup language used for designing many things. Microsoft Exel isn't a coding language it's a spreadsheet software.

I don't understand any of this please try your best and help if you can.

Answers

I don’t understand it either lol

Which two items define a person's online identity? (choose two)

O Social media profiles

O User login name

O Passwords

O Posts made to blogs and social media sites

Answers

1 & 4 because social media’s are your identity and posts show what you’re doing and what you’re posting about yourself / other people.

Emma is writing a program to encrypt text entered by a user. Only letters, spaces and punctuation marks can be encrypted. Each letter in the text is replaced by the letter three places further down the alphabet. A is replaced by D, b by e, … Y by B, z by c. Spaces and punctuation marks are not changed.
Complete the test plan below by stating, for each input data and expected outcome, the type of test and a reason for the test.

Answers

Answer:

,

Explanation:

Help PLEASE
If I want to increase the current in a wire, I should increase the
A. Lenght
B. Voltage
C. Number of lights

Answers

Answer:

Voltage

Explanation:

Answer:

B- VOLTAGE

Explanation:

BECAUSE VOLTAGE GENERSTES ELECTRICITY

Binary numbers can be shifted left or right to alter their value.
Perform a binary shift left of two places on the number below.


01100111

Answers

Maybe try “01110011”

Can someone help with this please Thankyou

Answers

Well positive is they would be able to communicate better and negative is they would have to adapt and figure how to properly use technology

You have just plugged a USB hard drive into an older laptop and the disk has not appeared as available. You are concerned that the hard disk hardware has not been recognized by the computer. What utility would you use to verify??

Answers

Answer:

Device Manager and Disk Management

Explanation:

There are two main utilities that can be used to solve this problem. The main one being device manager. This utility will show you any and all devices connected to the computer. This includes USB hard drives. If it is detected and has a driver installed it will show up in Device Manager. From here you can also change the drivers, disable/enable it, etc. If the device is not listed in Device Manager then you can use the Disk Management utility to check if it is listed there. This can sometimes happen when the disk does not have a proper drive letter, which can be adjusted in Disk Management. Both of these utilities are built-in to windows operating systems.

Other Questions
What does "area" mean in a circle? Variation in DNA is the direct result of which of the following? *Asexual ReproductionCrossing OverInterphaseSomatic Cells Hi can someone help me out. This is due by the end of the day. Solve for x: 3(x + 5) + x =7 4x + 5y = 227x - 3y = -32 For f(x) = -4x + 2, find f(1). NEED ASAP. WILL MARK BRAINLIEST!1. (06.01 LC)Based on the kinetic theory, which statement is true? (15 points)A. The particles of matter are stationary.B. Matter is composed of very small particles.C. Matter is made up of only charged particles.D. The particles of matter have zero kinetic energy. Which energy conversion occurs in the cells of algae, such as the kelp shownin the photograph?A. Potential energy Kinetic energyO B. Light energy - Chemical energyC. Chemical energy Light energyD. Potential energy Nuclear energy PROTEIN SYNTHESIS is an important cell process because it does what for cells? a. Builds proteins needed for all of the cell's other functions b. Builds proteins so the cell can move around in the body c. Builds proteins so the cell can grow throughout its life d. Builds proteins needed for the cell to do cellular respiration I cant do this plz help Can somebody help me with forms of "ser"? In the attached picture: what is the value of x , where 2x + 1 = 99 What is the answer? Expand and simplify 6(2x-3)-2(2x+1) write five sentence about shopkeeper which expression is equivalent to (x2-7/5x-4) - (2x+9/5x-4) Remember to simplify your answer (make improper fractions mixed numbers) 3 : 4. 5 The price listed for 4 dinner plates at a home store is $23.88. What amount will Jane need to pay, if she decides to purchase 10 such dinner plates? Plot the following points on the coordinate plane. Connect them, and find the area of the shape that results.(3,2) (-6,2) (-6,-8) (3,-8) In what ways were the Maya, the Aztecs, and the Inca advanced for their time? Why were these advancements necessary for the prosperity of their empires? explain how you can use multiplication to write a fraction that is equivalent to 3/5