Question: Instructions: Place all your classes into one 'java' file and submit your file If you submit any other file other than 'java', you will

Instructions: Place all your classes into one 'java' file and submit your

Instructions: Place all your classes into one 'java' file and submit your file If you submit any other file other than 'java', you will receive 'zero' Do NOT submit the whole folder of your project, otherwise, your grade will be reduced by half. When developing your program, you need to follow the guidelines we provided in class for coding, e.g. correct use of variable names, functions, classes, etc. You are requested to develop an application to manage the sales of a car dealership. Specifically, you will need to develop the following classes: Car: A car is identified by vin number (vehicle identification number which is a 17-character long string), name, color and price. There are three types of cars used in this application: Smart Car, Electric Car and Regular Car. Smart Cars benefit from Artificial Intelligence, electric cars use battery as drive source and regular cars use gasoline. Hint: Use Abstract and Inheritance for car and different types of cars. Purchase: Identified by a car, sales price and purchase date. For each class, you are requested to develop attributes, constructors, methods, etc. The design of classes is open and left for you. In your application, you can assume that we have these classes already added (you can copy these classes from the following and paste them in your project). Implementation of these classes are not required: Public class Al{} Public class Battery{} Public class GasEngine{} Our goal is to use these classes in order to calculate the total amount of sales on a specific day for a dealership. For example, one can use your classes to develop the following code: pubic static void main(String[] args){

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!