Guest User

Untitled

a guest
Dec 16th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. -------------Input----------------
  2. CreateBoatEngine\Shark\100\-250\Jet
  3. CreateBoatEngine\Shark\500\250\Jet
  4. CreateSailBoat\Sail1\100\100
  5. CreateYacht\Yacht1\500\Shark\250
  6. CreateRowBoat\Rowboat1\100\20
  7. CreateRowBoat\Slow1\300\1
  8. OpenRace\2100\2100\200\true
  9. SignUpBoat\Yacht1
  10. SignUpBoat\Sail1
  11. SignUpBoat\Rowboat1
  12. SignUpBoat\Slow1
  13. StartRace
  14. OpenRace\2100\0\201\true
  15. SignUpBoat\Yacht1
  16. SignUpBoat\Sail1
  17. SignUpBoat\Rowboat1
  18. SignUpBoat\Slow1
  19. StartRace
  20. OpenRace\2100\2000\200\false
  21. SignUpBoat\Yacht1
  22. SignUpBoat\Sail1
  23. SignUpBoat\Rowboat1
  24. SignUpBoat\Slow1
  25. StartRace
  26. End
  27.  
  28. ----------Expected Output----------
  29. Displacement must be a positive integer.
  30. Engine model Shark with 500 HP and displacement 250 cm3 created successfully.
  31. Sail boat with model Sail1 registered successfully.
  32. Yacht with model Yacht1 registered successfully.
  33. Row boat with model Rowboat1 registered successfully.
  34. Row boat with model Slow1 registered successfully.
  35. A new race with distance 2100 meters, wind speed 2100 m/s and ocean current speed 200 m/s has been set.
  36. Boat with model Yacht1 has signed up for the current Race.
  37. Boat with model Sail1 has signed up for the current Race.
  38. Boat with model Rowboat1 has signed up for the current Race.
  39. Boat with model Slow1 has signed up for the current Race.
  40. First place: Yacht Model: Yacht1 Time: 1.00 sec
  41. Second place: SailBoat Model: Sail1 Time: 1.00 sec
  42. Third place: RowBoat Model: Rowboat1 Time: 1.00 sec
  43. A new race with distance 2100 meters, wind speed 0 m/s and ocean current speed 201 m/s has been set.
  44. Boat with model Yacht1 has signed up for the current Race.
  45. Boat with model Sail1 has signed up for the current Race.
  46. Boat with model Rowboat1 has signed up for the current Race.
  47. Boat with model Slow1 has signed up for the current Race.
  48. First place: RowBoat Model: Rowboat1 Time: 1.00 sec
  49. Second place: Yacht Model: Yacht1 Time: 1.00 sec
  50. Third place: RowBoat Model: Slow1 Time: 2100.00 sec
  51. A new race with distance 2100 meters, wind speed 2000 m/s and ocean current speed 200 m/s has been set.
  52. The specified boat does not meet the race constraints.
  53. Boat with model Sail1 has signed up for the current Race.
  54. Boat with model Rowboat1 has signed up for the current Race.
  55. Boat with model Slow1 has signed up for the current Race.
  56. First place: RowBoat Model: Rowboat1 Time: 1.00 sec
  57. Second place: SailBoat Model: Sail1 Time: 1.05 sec
  58. Third place: RowBoat Model: Slow1 Time: Did not finish!
Add Comment
Please, Sign In to add comment