Question: VehicleFactoryMain will use these classes to make a random number and assortment of vehicle types. For example: Car - red, 1 5 2 4 Kg
VehicleFactoryMain will use these classes to make a random number and assortment of vehicle types.
For example:
Car red, KgKgKg gas, wheels, doors, fastback.
Balloon orange,KgKgKg gas, m hot air.
For the various ranges, altitudes, and weights set a max and min value and randomly choose between those.
For values that have types hotair, hydrogen, helium or gas, electric, diesel, kerosene, methane,none make a static array in the class and randomly choose one of the values.
Have the factory select a random number between inclusive for each type of vehicle.
It will then generate many randomized versions of one of the types of vehicles.
Repeat this process for all types of vehicles and store all of them in an ArrayList.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
