In this assignment you will use a class Car torepresent a car that travels to variousdestinations. Your car has a fuel economy ratingof 32.3 miles per gallon. The gas tank holds 19.5 gallons. Yourprogram will need to simulate two trips: 1) BC to YosemiteValley, and 2) BC to Washington, D.C.. For each trip you will startwith a full tank of gas. The output should look asfollows.
Trip one: Bakersfield College to YosemiteValley
Mileage: 204
Trip two: Bakersfield College to Washington,D.C.
Mileage: 2,686
The constructor will set the fuel efficiency rating to32.3 mpg and the initial fuel level for each trip to zero.
Write a
PayPal Gateway not configured
PayPal Gateway not configured