please Help...

Write a pseudo code that prompt the driver to enter the miles at the before taking the car and miles when returning the car.the program must him to enter the fuel consumed that day.the must be able to determine the fuel consumption for that vehicle i.e so much liters per mile.
formula r: miles traveled= miles checked when returning minus miles checked before taking the car

1 answer

print "mileage at start"
read milesout
print "mileage at end"
read milesin
print "liters consumed"
read fuel
rate = (milesin-milesout)/fuel
print "fuel consumtion rate: ",rate," miles/liter"

Now go code it up and adjust the prompts and variable names as you will.