Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python programming Part III: Unfair Hiring System (20 points) Write a function unfair hiring.system) that takes the following arguments, in this order 1. applications: a

image text in transcribed

image text in transcribed

Python programming

Part III: Unfair Hiring System (20 points) 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. 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 list. He stants 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 ' St rong' 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 I to his current mood reject the application and subtract 2 from his current mood append the index of the application and subtract I from his current mood CSE 101 - Fall 2017 Lab #4 Page 3 If the current application is , Poor, and his current mood is less than 75% of his starting mood level then reject the application and subtract 5 from his current mood. . 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: application I' Strong',FairDisaster' 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago