# 辅导 comp9021 principles of programming

QUIZ 5
COMP9021 PRINCIPLES OF PROGRAMMING
\$ python3
...
>>> from quiz_5 import *
>>> analyse('F', 43)
The following might particularly contribute to cardio problems for females aged 43:
17.88: Diastolic blood pressure in category 4 (1 lowest, 5 highest)
12.46: Systolic blood pressure in category 1 (1 lowest, 5 highest)
9.98: Diastolic blood pressure in category 3 (1 lowest, 5 highest)
8.53: Cholesterol in category 3 (1 lowest, 3 highest)
3.99: Diastolic blood pressure in category 2 (1 lowest, 5 highest)
3.25: Diastolic blood pressure in category 5 (1 lowest, 5 highest)
2.44: Height in category 5 (1 lowest, 5 highest)
2.11: Glucose in category 3 (1 lowest, 3 highest)
2.09: Weight in category 4 (1 lowest, 5 highest)
2.09: Systolic blood pressure in category 5 (1 lowest, 5 highest)
1.79: Systolic blood pressure in category 4 (1 lowest, 5 highest)
1.60: Cholesterol in category 2 (1 lowest, 3 highest)
1.43: Glucose in category 2 (1 lowest, 3 highest)
1.35: Not being active
1.25: Weight in category 3 (1 lowest, 5 highest)
1.20: Systolic blood pressure in category 2 (1 lowest, 5 highest)
1.03: Height in category 2 (1 lowest, 5 highest)
1.03: Height in category 3 (1 lowest, 5 highest)
1.02: Not smoking
1.01: Drinking
Date: Trimester 1, 2022.
2 COMP9021 PRINCIPLES OF PROGRAMMING
>>> analyse('M', 58)
The following might particularly contribute to cardio problems for males aged 58:
inf: Diastolic blood pressure in category 4 (1 lowest, 5 highest)
7.35: Weight in category 5 (1 lowest, 5 highest)
4.63: Diastolic blood pressure in category 3 (1 lowest, 5 highest)
2.93: Systolic blood pressure in category 4 (1 lowest, 5 highest)
2.52: Weight in category 4 (1 lowest, 5 highest)
2.49: Diastolic blood pressure in category 2 (1 lowest, 5 highest)
2.27: Systolic blood pressure in category 3 (1 lowest, 5 highest)
2.16: Cholesterol in category 3 (1 lowest, 3 highest)
1.96: Systolic blood pressure in category 5 (1 lowest, 5 highest)
1.86: Weight in category 3 (1 lowest, 5 highest)
1.63: Diastolic blood pressure in category 5 (1 lowest, 5 highest)
1.62: Height in category 2 (1 lowest, 5 highest)
1.55: Height in category 1 (1 lowest, 5 highest)
1.46: Cholesterol in category 2 (1 lowest, 3 highest)
1.40: Glucose in category 2 (1 lowest, 3 highest)
1.33: Not being active
1.18: Glucose in category 3 (1 lowest, 3 highest)
1.04: Drinking
1.02: Smoking