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 12:30
Jacob’s four-month-old infant is crying continuously. while jacob’s wife suggests that he pick up the baby, jacob’s mother thinks that picking up the baby each time she cries is bad for the baby. why is jacob’s wife right? a. babies sleep better when carried. b. babies learn to cry whenever they want someone to hold them. c. babies may choke if crying while lying on their back. d. babies develop a sense of trust that someone is there to provide care.
Answers: 1
question
Advanced Placement (AP), 24.06.2019 08:00
Which statements describe continental crust? select the three correct answers. a-it is formed in all parts of the continents. b-it is made mostly of volcanic rock. c-it is destroyed by melting near the top of the mantle. d-it is less than 10 km thick. e-its ages ranges from very young to more than 4 billion years old.
Answers: 2
question
Advanced Placement (AP), 25.06.2019 21:00
Identify one way in which the changes during the industrial revolution can be considered a political turning point in world history
Answers: 1
question
Advanced Placement (AP), 26.06.2019 09:00
Can someone make a thesis statement out of this? some historians have called the civil war and reconstruction period a “second american revolution.”
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
Geography, 25.12.2019 10:31
question
Mathematics, 25.12.2019 10:31
Questions on the website: 13722363