Lab Assignment #2
You are to develop a program for an auto dealership. This program will keep track of the auto inventory using an array of objects. The dealer has a limit of 100 cars in inventory at one time due to space restrictions. The class used to instantiate the auto objects must contain at a minimum the following information:
· Dealer inventory number (starting at 1000)
· Auto VIN
· Make
· Model
· Exterior color
· Interior color
· Transmission type
· Engine size in cubic inches
· Wholesale price
· Retail price
You program must present the user with a menu allowing the entry of new automobiles as they are received and remove the automobiles as they are sold. You must provide methods to search the array for cars of a particular make or model or dealer inventory number. These methods must overload the == operator. When a match is found all attributes of the car will be displayed. If a match is not found the appropriate message should be displayed.
You must provide a method to display the total number of cars in inventory.
You should provide private helper methods to check for the correct entry of numbers for the wholesale and retail prices.