Question: Write a function unfair hiring system() that takes the following arguments, in this order: applications : a list of strings containing some combination of Strong

  1. Write a function unfair hiring system() that takes the following arguments, in this order:

    1. applications: a list of strings containing some combination of Strong, Fair, Poor and

      Disaster

    2. mood: a positive integer that indicates the starting mood of the recruiter. A higher value increases his

      chances of hiring weaker applicants.

 Write a function unfair hiring system() that takes the following arguments,
Solve the problem by using python

Part III: Unfair Hiring System (20 points) Write a function unfairhiring.system) that takes the following arguments, in this order: I. applications: a list of strings containing some combination of Strong'. 'Fair'. 'Poor' and Disaster 2. mood: a positive integer that indicates the starting mood of the recruiter. A higher value increases his chances of hiring weaker applicants. A recruiter wants to hire people for his firm. He is given a list of applications to look at and needs to make a list of applicants he wants to hire. The function will return a list of the indexes of people hired to be from the applications t. He starts off at a moodiness level of mood, but as time progresses, he starts to feel exhausted, and judge applications more harshly. If his mood drops to 0 then he stops recruiting and starts rejecting all remaining applicants. Your function must mimic the scenario above. The recruiter analyzes each application in turn from the list as If the current application is Strong' then append the index of the application to the list you will return * If the current application is , Fair, and his current mood is 50% or more of his starting mood level then . If the current application is , Fair, and his current mood is less than 50% of his starting mood level then * If the current application is , Poor, and his current mood is 75% or more of his starting mood level then follows: and add 2 to his current mood. append the index of the application and add 1 to his current mood. reject the application and subtract 2 from his current mood append the index of the application and subtract 1 from his current mood If the current application is , Poor, reject the application and subtract 5 from his current mood. . and his current mood is less than 75% of his starting mood level then .If the current application is Disaster then reject the application and subtract 10 from his current mood. Every application he checks decreases his mood by 1, regardless of how good the application is. Examples: applicationl'Strong', 'Fair, 'Disaster'1 application2 application3 ['Disaster''Poor, 'DisasteDisaster, 'Disaster" Poor,Disaster', Poor Function Call unfair hiring.-system (applications1, 100) [0,1 unfair hiring.system (applications2, 50 unfairhiring.system (applications3, 200) 11,5 Return Value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!