Create a trip class include as data members destination


Problem

Create a Trip class. Include as data members destination, distance traveled, total cost of gasoline, and number of gallons consumed. Include appropriate constructors and properties. Add additional methods that calculates miles per gallon and the cost per mile. Override the ToString ( ) method. Create a second class to test your Trip class.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a trip class include as data members destination
Reference No:- TGS02645339

Expected delivery within 24 Hours