Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Title: Human Race Survival
- Time Available: 48 hours
- Human Race Survival
- Planet Earth has been destroyed and all we have left are a couple of ships and a map with inhabitable planets.
- Not all ships have the same characteristics and not all planets are reachable in the same way.
- Design a program that lets me introduce the ships and planets with their characteristics and then determines which ship must reach which planet to maximize the likelihood of colonisation.
- Spaceship Characteristics: Fuel: (L), Consumption: Fuel/lightyear, Weapons, Radiation shielding
- The Ship has also a name that lets me identify it.
- Planets: Radiation zones to be passed, Distance from Earth, Hostile lifeforms
- The Planet has also a name that lets me identify it.
- Notes
- Please use OOP concepts to model the Ship & Planet concepts and use them in your program. If possible try to optimise the fuel (not mandatory).
- Data will be introduced from console /file / UI/ dummy data in code. Your choice which one, just make it easy to use and clear.
- Any design choices filling the blanks, if needed, are yours. For clarity please add a comment in code/readme file with them.
- If multiple results are valid please show them all.
- You are encouraged to extend your project with extra features as they will be considered a bonus. Donβt forget to do the requirements first :)
- UPDATE: Please remember to implement this in JAVA
- Basic Example:
- Ship 1: Fuel: 1000 L, Consumption:100 L/lightyear, Weapons:No, Radiation Shielding : No
- Ship 2: Fuel: 2000 L, Consumption:100 L/lightyear, Weapons: No, Radiation Shielding : Yes
- Planet 1: No Radiation zones, Distance 10 lightyears, No hostile Aliens
- Planet 2: No Radiation zones, Distance 20 lightyears, No hostile Aliens
- Planet 3: Some Radiation, Distance 10 lightyears, No hostile Aliens
- Planet 4: No Radiation zones, Distance 5 lightyears, Hostile Aliens
- Result : Ship1 -> Planet 1 ; Ship 2 -> Planet 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement