Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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