Uncategorized

Background Medical Researcher Question & Answer Guide (With Explanation)

Students often encounter this when studying fundamental concepts.

What This Question Is About

This question relates to background medical researcher and requires a structured academic response.

How to Approach This Question

Structure your response with introduction, analysis, and conclusion.

Key Explanation

This topic involves background medical researcher. A strong answer should include explanation, application, and examples.

Original Question

Background You are a medical researcher running a study on a new drug. You are screening potential participants and you need to make sure you identify any outliers. In particular, you want to flag anyone who is outside the typical ranges of tall/short or light/heavy. Therefore, write a simple routine to determine if a potential participant is eligible based on: Weight Height Sex Requirements Collect these three data points through the user input() functions that are provided for you. Note that some of the inputs will be cast to the correct data type for you. Men within 62 inches and 80 inches tall and between 150 and 280 lbs are needed for this study. Women between 59 and 71 inches and 100 and 180 lbs are needed for this study. Create flow logic to determine whether an inputted patient is within the thresholds. Set the appropriate flags to either True or False based on the user inputs. The following flag variables need to be used in order for the auto-grader to recognize their correctness: too_tall_flag too_short_flag too_heavy_flag too_light_flag If they are an outlier, print a message indicating they are not eligible and tell them which thresholds they did not meet. Create as many if/elif/else statements as you need to accomplish this task. For example, the table below indicates potential inputs and outputs: Entered inputs: Output: Sex Weight Height Male 220 81 Participant is too tall Male 149 62 Participant is too light Female 170 58 Participant is too short Female 140 68 Participant qualifies for the study In order to analyze data, we need to handle the many possible ways that these data could be entered. For example, sex could be entered into a textbox as “female”, “f”, “F”, “Female”, 0, 1, “m”, “M”, “Male”, “Man”, “woman”, or it could be mispelled. Use some combination of if/elif/else statements (including “or” and/or “and” criteria) and/or string formatting (e.g. converting case or examining only the first letter) to handle as many possibilities as you can think of to handle every type of input. The grader can use any of the aforementioned values when evaluating your code so you need to handle at least the ones mentioned above (excluding misspellings). To keep this simple, you do not need to validate that the user enters numeric inputs for weight and height. You can assume they will enter acceptable values. There are many different ways to complete these requirements. You are not being tested to see if you use a particular method. Your code simply needs to meet the requirements above with only one exception. You must find a way to use each of the following commands in your solution: if, else, and elif, as well as use the above listed variables to store the boolean values for each flag. Given the inputs of “male”, 63 inches, and 150 lbs, all of the flags are set correctly. Given the inputs of “female”, 72 inches, and 150 lbs, all of the flags are set correctly. Given the inputs of “female”, 72 inches, and 190 lbs, all of the flags are set correctly. Given the inputs of “female”, 62 inches, and 98 lbs, all of the flags are set correctly. Given the inputs of “male”, 84 inches, and 300 lbs, all of the flags are set correctly.

 
******CLICK ORDER NOW BELOW AND OUR WRITERS WILL WRITE AN ANSWER TO THIS ASSIGNMENT OR ANY OTHER ASSIGNMENT, DISCUSSION, ESSAY, HOMEWORK OR QUESTION YOU MAY HAVE. OUR PAPERS ARE PLAGIARISM FREE*******."