23.06.2021

When you go out to eat, you always tip 20% of the bill amount. But who’s got the time to calculate the right tip amount every time? Not you that’s for sure! You’re making a program to calculate tips and save some time.

Your program needs to take the bill amount as input and output the tip as a float.

. 2

Step-by-step answer

23.11.2022, solved by verified expert
Unlock the full answer
1 students found this answer . helpful

Answer:

Given below

Step-by-step explanation:

The required program is: 

bill = int(input()) 

x=20 

y=100 

tip=(bill*int(x)/int(y)) 

print(float(tip))

It is was helpful?

Faq

Mathematics
Step-by-step answer
P Answered by PhD
Answer: 440 grams for 1.54 is the better value
Explanation:
Take the price and divide by the number of grams
1.54 / 440 =0.0035 per gram
1.26 / 340 =0.003705882 per gram
0.0035 per gram < 0.003705882 per gram
Mathematics
Step-by-step answer
P Answered by PhD

Cost of 7 gallons=$24.50

Cost of 1 gallon=24.50/7=3.5

Cost of 15 gallons=15*3.5=52.5

Cost of 15 gallons will be $52.5

Mathematics
Step-by-step answer
P Answered by PhD

For every 8 cars there are 7 trucks

Therefore,

Cars:Truck=8:7

Answer is B)8:7

Mathematics
Step-by-step answer
P Answered by PhD

The solution is in the following image

The solution is in the following image
Mathematics
Step-by-step answer
P Answered by PhD

The answer is in the image 

The answer is in the image 
Mathematics
Step-by-step answer
P Answered by PhD

Here,

tip=18%of $32

tip=(18/100)*32

=0.18*32

=$5.76

Total payment=32+5.76=$37.76

Mathematics
Step-by-step answer
P Answered by PhD

The wood before starting =12 feet

Left wood=6 feet

Wood used till now=12-6=6 feet

Picture frame built till now= 6/(3/4)

=8 pieces

Therefore, till now 8 pieces have been made.

Mathematics
Step-by-step answer
P Answered by PhD

The wood before starting =12 feet

Left wood=6 feet

Wood used till now=12-6=6 feet

Picture frame built till now= 6/(3/4)

=8 pieces

Therefore, till now 8 pieces have been made.

Try asking the Studen AI a question.

It will provide an instant answer!

FREE