Question
A car sales company requires a server to store all its car data and share it with its sales personnel. For the purposes of this
A car sales company requires a server to store all its car data and share it with its sales personnel. For the purposes of this assignment each car has the following attributes: registration, make, price, mileage, and forSale (use a Boolean- true for forSale and false for sold).
A salesperson can add a new car to the system,
sell a car or request information from the system. Sample requests would be:
-Cars for sale,
-Cars of a given make,
-Total value of all sales.
All cars added to the system should be stored in a thread-safe shared data structure on the server. You can create one client that performs all requests above, one after the other. No need for user intervention. Your task is to build a working model of this system.
Notes
1. No log on/off required for users.
2. For this assignment you should add approximately 15 cars to the system.
#Java#Conncurrency
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