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:00
Carrie received a w-2 form, 1099-misc, and a 1099-int. what is most likely true about carrie?
Answers: 1
question
Advanced Placement (AP), 24.06.2019 05:00
Ronan has been working as domestic at a large mansion since a few months. recently, he has taken his employer’s seven-year-old boy by force and held him captive. he has demanded money from his employer in return of the boy. which crime has ronan committed? a. treason b. sedition c. assault and battery d. kidnapping
Answers: 2
question
Advanced Placement (AP), 25.06.2019 13:30
Compare and contrast the impact of global commerce on european and asian dynasties. did any dynasty hold an advantage over others in controlling commercial networks and using them to enrich their societies?
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
Mathematics, 01.10.2019 08:30
Questions on the website: 13722363