Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 Collect these three data points through user input ( ) boxes. Men within 6 2 inches and 8 0 inches tall and between 1
Collect these three data points through user input boxes. Men within inches and inches tall and between and are needed for this study. Women between and inches and and are needed for this study. Create flow logic to determine whether an inputted patient is within the thresholds. 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 ifelifelse 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 Participant is too tall
Male Participant is too light
Female Participant is too short
Female 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 "Female", "Male", "Man", "woman", or it could be mispelled. Use some combination of ifelifelse statements including or andor "and" criteria andor string formatting eg converting case or examining only the first letter to handle as many possibilities as you can think of to handle every type of input.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started