Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions