You recently found a job as a sales rep for a company that hascustomers in three states. The job involves a lot of travel in yourcar. Fortunately, the company reimburses you for the miles you puton your car. Instead of using a spiral-bound notebook to recordyour trip data, you decide to build an application for your laptopto keep track of your trips. Assume that you have already built theform, that you have written the code for the button-click eventhandler, and all you have left to do is define a class. Define aTrip class to store the beginning and the ending odometer readingsfor the trip. You will also want to store the destination and thedate. Store the odometer readings as numbers and the destinationsand dates as strings. Be sure to restrict access to these variablesto methods that belong to the class.
At this time, the only method you need to define for your class isa method to create a message box to display the destination, themiles traveled, and the trip date. Set the caption of the messagebox to the destination and the date. Each item should be displayedon a separate line. For example, the message box for a member’sitem could look like the following.
Destination: Eugene
Mileage: 456
Trip Date: 10/30/2010Â





