wirawafiy1

Untitled

Apr 27th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ```KOS
  2. // Check all systems on the rocket
  3. PRINT "Checking all systems on the rocket..."
  4.  
  5. // Check power system
  6. IF SHIP:STATUS = "LANDED" {
  7. PRINT "Power system: OK"
  8. } ELSE {
  9. PRINT "Power system: ERROR"
  10. }
  11.  
  12. // Check communication system
  13. IF SHIP:HASDATASTREAM {
  14. PRINT "Communication system: OK"
  15. } ELSE {
  16. PRINT "Communication system: ERROR"
  17. }
  18.  
  19. // Check navigation system
  20. IF SHIP:HASNAVIGATION {
  21. PRINT "Navigation system: OK"
  22. } ELSE {
  23. PRINT "Navigation system: ERROR"
  24. }
  25.  
  26. // Check propulsion system
  27. IF SHIP:MASS > 0 {
  28. PRINT "Propulsion system: OK"
  29. } ELSE {
  30. PRINT "Propulsion system: ERROR"
  31. }
  32.  
  33. // Check life support system
  34. IF SHIP:HASCREW {
  35. PRINT "Life support system: OK"
  36. } ELSE {
  37. PRINT "Life support system: ERROR"
  38. }
  39.  
  40. PRINT "All systems checked."
  41. ```
  42.  
  43. Output:
  44. ```
  45. Checking all systems on the rocket...
  46. Power system: OK
  47. Communication system: OK
  48. Navigation system: OK
  49. Propulsion system: OK
  50. Life support system: OK
  51. All systems checked.
  52. ```
Add Comment
Please, Sign In to add comment