subject

Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f} {:.2f} {:.2f}'.format(your_value1, your_value2, your_value3))

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 15:00
What is the function of the organelle labeled a in the diagram?
Answers: 3
question
Advanced Placement (AP), 23.06.2019 21:50
*i’ll mark you brainliest to whoever answers the fastest with the right answer * if someone runs a red light in front of you, and you choose not to slow down or steer away, you will a. not be at fault if there is a collision b. be partially at fault if there is a collision c. have to appear in court if there is a collision d. probably not be involved in a collision
Answers: 1
question
Advanced Placement (AP), 25.06.2019 03:00
What will happen to a firms profit maximizing quantity in the short run if there is a significant increase in rent
Answers: 1
question
Advanced Placement (AP), 25.06.2019 04:30
Why are radio observatories located in valleys far away from urban centers? a. to shield them from electromagnetic interference b. to avoid sound pollution c. to avoid disturbing people living in the city d. to shield them from water vapor
Answers: 1
You know the right answer?
Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats)...
Questions
question
Mathematics, 03.10.2019 04:00
question
Mathematics, 03.10.2019 04:00
question
Business, 03.10.2019 04:00
question
History, 03.10.2019 04:00