Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. Title: Human Race Survival
  2.  
  3. Time Available: 48 hours
  4.  
  5. Human Race Survival
  6.  
  7. Planet Earth has been destroyed and all we have left are a couple of ships and a map with inhabitable planets.
  8.  
  9. Not all ships have the same characteristics and not all planets are reachable in the same way.
  10.  
  11. 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.
  12.  
  13. Spaceship Characteristics: Fuel: (L), Consumption: Fuel/lightyear, Weapons, Radiation shielding
  14. The Ship has also a name that lets me identify it.
  15.  
  16. Planets: Radiation zones to be passed, Distance from Earth, Hostile lifeforms
  17. The Planet has also a name that lets me identify it.
  18.  
  19. Notes
  20. 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).
  21.  
  22. Data will be introduced from console /file / UI/ dummy data in code. Your choice which one, just make it easy to use and clear.
  23.  
  24. Any design choices filling the blanks, if needed, are yours. For clarity please add a comment in code/readme file with them.
  25.  
  26. If multiple results are valid please show them all.
  27.  
  28. 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 :)
  29.  
  30. UPDATE: Please remember to implement this in JAVA
  31.  
  32. Basic Example:
  33. Ship 1: Fuel: 1000 L, Consumption:100 L/lightyear, Weapons:No, Radiation Shielding : No
  34. Ship 2: Fuel: 2000 L, Consumption:100 L/lightyear, Weapons: No, Radiation Shielding : Yes
  35.  
  36. Planet 1: No Radiation zones, Distance 10 lightyears, No hostile Aliens
  37. Planet 2: No Radiation zones, Distance 20 lightyears, No hostile Aliens
  38. Planet 3: Some Radiation, Distance 10 lightyears, No hostile Aliens
  39. Planet 4: No Radiation zones, Distance 5 lightyears, Hostile Aliens
  40. Result : Ship1 -> Planet 1 ; Ship 2 -> Planet 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement