Question: This is a python code and no defs, returns, or break Question 4 The nation of Funland has several medical schools which are managed by

This is a python code and no defs, returns, or break

This is a python code and no defs, returns, or break Question

Question 4 The nation of Funland has several medical schools which are managed by a central board. Each medical student graduate applies for a residency program to the central board and is interviewed by each of the eight interviewers. Each interviewer awards points from 1 to 10. Based on the average of the scores from the eight Interviewers, the applicant elther (Al gets accepted in the residency program of the applicant's choice, (B) is matched with spots available in other residency programs, or is rejected based on the following rules: Average Placement Equal or more than 7 Matched to the applicant's choice residency program Between S and 7(including 5, excluding 7 Matched with available residency spots Less than 5 Not accepted Given the ID and the choice of residency program of each applicant determine and display the applicant's placement message. In addition, display the total number of applicants accepted to the residency program Note: Rather than inputting the scores of the eight interviewers for each applicant (which would take a lot of time in testing, use the random module and the randint function to randomly generate values between 1 and 10 (inclusive) for each interviewer per applicant. See textbook page 155 for an example of random number generation Sample input and output from the program is as follows Enter the id of the applicant: 111 Enter the desired residency program: Family Interviewer's Scores: ES 437216 Average 4.25 Applicant 111 is not accepted into the residency program at this time Do you want to process another applicant? (yes or no yes Enter the id of the applicant: 234 Enter the desired residency program: Pediatrics Interviewer's scores: 4 8 10 10 4 9 IOS Average: 7.875 Applicant 234 is accepted in the Pediatrics residency program. Do you want to process another applicant? yes or no) yes Enter the id of the applicant: 432 Enter the desired residency program Hadiology Interviewer's scores: 83 875 551 Average: 5.25 Applicant 432 111 be matched with an available residency spot. Do you want to process another applicant? (yes or no) yes Enter the id of the applicant: 231 Enter the desired residency programs Family Interviewer's scores: 281E8 E9 ID__ Average: 6.25 Applicant 231 will be watched with an avaliable realdency spot, Do you want to process another applicant? (yes or no) yes Enter the id of the applicant: 324 Enter the desired residency program: Radiology Interviewer's scores: 3 10 8 2 10 4 2 1 Average: 5.0 Applicant 324 w111 be matched with an avaliable residency spot. Do you want to process another applicant? (yes or no yes Enter the id of the applicant: 543 Enter the desired residency program: Surgery Interviewer's scores 15.768892 Average 5.75 Applicant 543 will be watched with an available residency spot. Do you want to process another applicant? yes or no yes Enter the id of the applicant: 555 Enter the desired residency program: Surgery Interviewer's scores: 61 581235 Average 4.625 Applicant 555 is not accepted into the residency program at this time Do you want to procesa ananas applicant? yes or no no The total number of residents accepted Ls 5. Call the file containing your program residency.py

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!