Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is in Python 3. I need help with how to write this code 2.14 HW: Driving co

ID: 3747072 • Letter: T

Question

This is in Python 3. I need help with how to write this code

2.14 HW: Driving costs Driving is expenslve Write a program with a car's miles/gallon and gas dollars/gallon (both ficats) as Input, and output the gas cost for 10 miles, 50 miles, and 400 miles Ex: If the input is 20.D 3.1599 Then the cutput is 1.579950 7.899750 63.198000 Ncte Real per-mile cost would also include maintenance and depreciation 214.1: HW: Driving costs main.py Load delault template 1Type your code here Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the programs output in the second box. Develop mode Submit mode Enter program input (optional) If your code requires input values, provide them here main.py Your Run program Input (from above Output(shown below) Program output displayed here

Explanation / Answer

mpg = float(input()) price = float(input()) price_10 = (10/20) * price price_50 = (50/20) * price price_400 = (400/20) * price print(price_10, price_50, price_400)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote