Advertisement
Luninariel

Python Logic Problem

Nov 6th, 2019
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. The marketing department at Gizmo Incorporated just moved into a new area of the building. There were two rows of cube offices, the left side row was against the outside wall and the right side row was against an inner wall. The row against the outside wall had the advantage of a window but the inner row of cube offices was a little bigger with more tabletop space. Six people worked in the department so three got cubes in one row and three got cubes in the other. Since everyone wanted a window office, the marketing manager chose a very fair way for the offices to be assigned – she drew six names out of a hat during a meeting so that everyone could witness the decision. The results were a mix; of the three men and three women in the department, some ended up on each side. In addition, while there were three people with “manager” in the title, some of them ended up on each side as well. Determine the full name of each person in the marketing department, the title of each person, who got a window office and who got a wall office.
  2.  
  3. 1. Steve’s last name wasn’t Radcliffe but he was the publications writer. Mr. Chase wasn’t the applications engineer.
  4.  
  5. 2. Curtis, whose last name wasn’t Fairview, ended up with a wall office.
  6.  
  7. 3. Ellen Weathervane wasn’t the marketing manager. Amelia wasn’t the applications engineer.
  8.  
  9. 4. The marketing analyst had a last name of Radcliffe. One product manager was a woman.
  10.  
  11. 5. Dick’s last name wasn’t Macklin. The person whose last name was Fairview was the applications engineer.
  12.  
  13. 6. The three window offices went to Ms. Singer, one of the product managers, and Harriet.
  14.  
  15. Rules by Line:
  16. Steve's Last Name wasn't Radcliffe - Implemented
  17.  
  18. Steve was the Publications Writer - Implemented
  19.  
  20. Mr. Chase wasn't the Applications Engineer - Implemented
  21.  
  22. Curtis' last name wasn't Fairview - Implemented
  23.  
  24. Curtis has a wall office - Implemented
  25.  
  26. Ellen Weathervane wasn't the marketing manager - Implemented
  27.  
  28. Amelia wasn't the Application Engineer - Implemented
  29.  
  30. Marketing Analysts last name was Radcliffe - Implemented
  31.  
  32. One product manager was a woman - Implemented
  33.  
  34. Dick's last name wasn't Macklin - Implemented
  35.  
  36. Fairview was the applications engineer - Implemented
  37.  
  38. One window office went to Ms. Singer - Implemented
  39.  
  40. One window office went to one of the product managers - Implemented
  41.  
  42. One window office went to Harriet - Implemented
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement