The GreenWheel car manufacturer is updating their product line. They have decided to produce a limited run of 500 new products.
GreenWheel has 50 dealerships already selling their cars.
The new vehicles use components from existing cars.
You have been tasked with gathering the components for the new vehicle line and distributing the completed 500 cars to the dealerships.
GreenWheel new product names:
GreenWheelX1, GreenWheelX2, GreenWheelX3, GreenWheelX4, GreenWheelX5
GreenWheelX6, GreenWheelX7, GreenWheelX8, GreenWheelX9, GreenWheelX10
Existing Car details:
name: (GreenWheelX2 / GreenWheelX9 etc.)
VinNumber: (vehicle id - unique)
gearbox: (5 / 6 / 8 speed)
transmission: (automatic / manual / NA)
engineType: (diesel / petrol / electric)
engineSize: (1.0 litre to 4.0 litre(petrol or diesel) 50 hp to 340 hp (electric))
numberOfDoors (2 to 5)
wheelSize (16 to 20 inch alloys)
colour (any colour you like)
Example output of existing car:
GreenWheelX5 (vin : 12345678)
2.5 litre petrol engine, 6 speed automatic transmission
20 inch alloy wheels, 3 doors, in cherry red.
Rules for new Vehicle:
(1) A new vehicle cannot use more than two components from any one existing car.
i.E - a gearbox and engine type from GreenWheelX1(vin:1509098) (that is the maximum we can take
from that particular GreenWheelX1(vin: 1509098) (we must use the other vehicles to fill the remaining requirements of the new vehicle)
(2) A new vehicle must state where its components came from.
(i.E donor vehicle name and vin number).
Example output of new car: (donor model is only seen when looking at all stock – old and new)
1.5 litre diesel engine (GreenWheelX1(vin:15)),
8 speed (GreenWheelX1 (vin:15)), automatic transmission (GreenWheelX7(vin:11)),
17 inch alloy wheels (GreenWheelX3(vin:11)), 3 doors(GreenWheelX5(vin:17)), in cherry red.
GreenWheel cars are sold in the GreenWheel dealerships.
GreenWheel Dealership details:
inventory (stock of cars: min of 5 - max of 20)
Example output of stock from GreenWheel dealership:
Gerry’s GreenWheel Dealership of 123 my road, my street, my County (randomly generated)
4 GreenWheelSportsCar in cherry red, sky blue, autumn orange and GreenWheel green.
3 GreenWheelX3 in sunset yellow, midnight blue and panther black.
1 SmallGreenMini in panther black.
Your program must be able to:
(1) Randomly generate the existing GreenWheel products (see existing car details).
(2) Generate the 500 new products using values from the existing products
(see rules for new vehicles (1)).
(3) Generate 50 GreenWheel dealerships and supply them with a mix of new and old products.
(See GreenWheel Dealership details)
Your end user must be able to:
(1) View all the existing products (old and new)
(2) View all the new products
(3) Select a single new product to view
(4) View all the dealerships and their products(existing stock and new stock)
(5) Select a single dealership to view
(6) Select a product from a selected dealership
Project Requirements / Rules:
You are required to implement the preceding program specification, in order to do this you must:
Generate data on first run of program. (Not hard coded).
Data must be persistent while program is running.(
i.E program must use the generated data).
All data may be (but does not have to be) saved to a .txt file to be used for subsequent runs of the program (program must then use this data).
Java standard edition 7, 8 or 9 (8 recommended) only, to be used.
Dependencies allowed (can be, but do not have to be used):
AWT / Swing.
Dependencies NOT allowed (must not be used):
No additional java libraries.
Category: IT & Programming
Subcategory: Web development
What is the scope of the project?: Small change or bug
Is this a project or a position?: Project
I currently have: I have specifications
Required availability: As needed
Roles needed: Developer, Other
Other roles needed: Programador em java