Answered step by step
Verified Expert Solution
Link Copied!

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

1 Collect these three data points through user input() boxes. Men within 62 inches and 80 inches tall and between 150 and 280lbs are needed for this study. Women between 59 and 71 inches and 100 and 180lbs 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 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", "Female", 0,1, "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.
image text in transcribed

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 Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

create a semiotic sign system to communicate an idea.

Answered: 1 week ago