Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Done in Java. Any help is appreciated! Design a class Car Dealership that simulates a typical dealership system that you find in your city/town. To
Done in Java. Any help is appreciated!
Design a class Car Dealership 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. 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 Car Dealership (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. Note: Define class(es) with all member variables & methods (with appropriate header). Only write comments (or possibly pseudo code) inside each method to describe what it should do. No other implementation needed for anything other than main method! This is a design exercise where you are deciding how classes should be designed and then tested. Be sure to following design guidelines discussed in Chapter 3/8. You still should be able to test it using main()Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started