Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Respond to both of the following scenarios. Scenario #1: A car dealership has hi

ID: 3905511 • Letter: R

Question

Respond to both of the following scenarios. Scenario #1: A car dealership has hired your software development firm to create a new car inventory program. You first need to develop a class that represents the inventory of the dealership. What components and attributes will need to be included in your automobile class? Why? Scenario #2: A national builder has hired your software development firm to create a home inventory program. You first need to develop a class that represents the inventory of the homes in the nation. What components and attributes will need to be included in your home class? Why?

Explanation / Answer

Scenario 1:

Car Class

{

Attributes:

Car ID

Type of Car

Model of Car

Color

Year of making

Mileage

Methods:

Add New Vehicle()

Remove Vehicle()

Update Attributes()

Search a Car()

}

Employee Class

{

Attributes:

Employee ID

Employee Name

Employee Address

Employee Contact

Methods:

Get Employee Name()

Get Employee Address()

Get Employee Contact()

AddEmployee()

Remove Employee()

UpdateEmployeeInformation()

}

Customer

{

Attributes:

CustomerId

CustomerNAme

CustomerAddrss

CustomerConact

Methods:

GetCusotmerInformation()

Update Customerinformation()

}

Sale

{

Attributes:  

OrderNo

Order Date

Car Model

EmployeeID

CustomerID

CarID

Methods:

GetOrderInformation()

}

The Car class should have attributes to define the type, model, year of making, mileage, color of the car. The methods defined in the Car class allow addition, removal and update of new vehicles and searching a car according to a specified type. The employee class is used to define employees who sell cars. The employee class has employee information and methods to add, remove and update employees. The customer class is needed to maintain information about customers who buys cars. The sale class maintains information about the sale of cars. It contains information about which customer buys which car model and the employee who sold the corresponding cars.

Scenario 2:

Home Class

{

Attributes:

Squarefeet

Address

City

State

PinCode

Yearofbuilding

Numberoffloors

NearestLandmark

Methods:

AddHome()

RemoveHome()

UpdateHomeAttributes()

}

Broker Class

{

Attributes:

BrokerID

BrokerName

BrokerAddress

Brokerregistration Number

Methods:

GetBrokerInformation()

Add Broker()

Remove Broker()

UpdateBroker()

}

Buyer Class

{

Attributes:

BuyerID

BuyerName

BuyerAddress

Methods:

GetBuyerInformation()

Add Buyer()

Remove Buyer()

Update Buyer()

}

Sale Class

{

Attributes:

SaleID

Sale date

BrokerID

BuyerID

Home Address

Methods:

GetSaleInformation()

}

The Home class contains information about the location, size, landmark and year of the building. The methods defined in the Home class are used to add, remove or update homes. The broker class is used to list the brokers who sell houses. The methods in the broker class are used to update the broker information. The buyer class lists the buyers who buy houses. The methods in buyer class update information about buyers. The Sale class is needed to maintain the information about the houses that are bought on a particular date by the buyers and the broker who sold the house/

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote