Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in Java please! Define ONE class CarDealership for the system with required member variables, appropriate constructors (more than one), appropriate methods (along with getters

image text in transcribed

Code in Java please!

Define ONE class CarDealership for the system with required member variables, appropriate constructors (more than one), appropriate methods (along with getters and setters) with proper argument list. Define additional classes as needed. Each method should have a brief comment describing its responsibilities. Note: You only need to provide header comment and psuedocode in each method and no implementation is needed. Implement main method to test all components of this system (i.e., write Java Code that instantiates the CarDealership (and other objects as needed) and calls the appropriate methods to test different capabilities like adding a car to dealership or selling a car to a customer, getting customer information for a given vehicle, and others as needed.

Design a class CarDealership that simulates a typical dealership system that you find in your city/town. To keep things simple, let focus on a simplified version of the system that has the following: a number of cars (of different make/model, condition - new or old, and with different prices). Car can be added to inventory or could be sold. Each car has a unique identifier. It would be appropriate to have Car class. a list of customers who have purchased cars in the past. Dealership stores customer's name, city, date of sale, sale price of the vehicle and vehicle identifier. It would be appropriate to create a Customer Class

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

Step: 3

blur-text-image

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago

Question

=+With whom does the firm have to negotiate?

Answered: 1 week ago