Question: 1. Write a program for program that calculates the mileage you get on your car. The program should ask the user for the number of
1. Write a program for program that calculates the mileage you get on your car. The program should ask the user for the number of miles traveled and the number of gallons consumed. Use the function mileage () to calculate the mileage. Mileage () should take two arguments: the number of miles traveled and the number of gallons consumed. The function should return the mileage. The program should then display the mileage.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
