akosiraff

Download Crew Recruitment C++ Answer

Sep 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/crew-recruitment/
  3. Problem: Crew Recruitment
  4. Before your friend can set sail, they will need a crew to sail with. Your friend has created a special series of questions to determine an applicant’s suitability for sailing the ocean and looking for treasure in the Caribbean. Based on their answers the program should print whether or not they will be allowed to join the crew.
  5. They will be asked two questions:
  6. 1. Do you like digging for treasure?
  7. 2. Are you able to swim?
  8. If the user indicates yes to the second question, the program should ask them how far they can swim in meters.
  9. Based on these responses, you will need to determine if they will be a good crew member for the ship. If the user does not enjoy digging for treasure, they will not make a good pirate. If the user cannot swim at least 100 meters, they should not attempt to sail the ocean. Otherwise, you can allow them to join your crew!
  10. Input Specification
  11. 1. The answer to each of the two questions will be either ‘Y’ to indicate yes or ‘N’ to indicate no.
  12. 2. The answer to the number of swimming meters will be an integer >= 0.
  13. Output Specification
  14. The output should be a single line that tells the user whether or not they will be allowed to join the crew.
  15. You may join the pirate crew! Arrr!
  16. Or:
  17. You may not join the crew.
  18. Output Sample
  19. Below are some sample outputs of running the program. Note that these samples are NOT a comprehensive test. You should test your program with different data than is shown here based on the specifications given above. In the sample run below, for clarity and ease of reading, the user input is given in italics while the program output is in bold. (Note: When you actually run your program no bold or italics should appear at all. These are simply used in this description for clarity’s sake.)
  20. Sample Run #1
  21. Do you like digging for treasure?
  22. Y
  23. Are you able to swim?
  24. Y
  25. How many meters are you able to swim?
  26. 150
  27. You may join the pirate crew! Arrr!
  28.  
  29. Download: https://solutionzip.com/downloads/crew-recruitment/
Add Comment
Please, Sign In to add comment