Question: Answer in Python. Use the code given in the answer when necessary and follow all instructions. Do not reupload an old answer. The variables FuelAmount




Answer in Python. Use the code given in the answer when necessary and follow all instructions. Do not reupload an old answer.
The variables FuelAmount and FuelCapacity hold the actual amount of fuel and the size of the fuel tank of a vehicle. If less than 10 percent is remaining in the tank, a status light should show a red color; otherwise it shows a green color. Simulate this process by displaying either the word "red" or "green". use input() to prompt the user to enter the required values In [9]: # Request inputs from the user # Determine output Amount of fuel left? 100 Fuel capacity? 1200 red Fully debug the following program. Note: Do not attempt to correct any logic just make it run ok given all reasonable input values. Note: There is no need to add try/except to catch incorrect country code input. : country str(input('Please enter your country (US or AU): ')) pkgCost = int(input('Please enter your package cost: ')). # assume dealing with costs as integers SE if country "US" if pkgCost = 100: print("Shipping cost is $25") elif pkgCost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
