Create a program that read the file "data_bmi.txt" 1 180 86 2 176 68.8 3 184 74 4 158 46 169 65.3 The first column is the patient number, the second column is the patient height (in cm) and the third column is the patient weight in kilogram. Once the file is read, you need to create a new numpy array of size 5 x 4. In the first 3 columns, you need to put the same information as from the loaded file and in the fourth column, you need to calculate the BMI of the patient. BMI = weight (in kg) / heigh2 (in m) 1 180 86 ? 2 176 68.8 ? 3 184 74 ? 4 158 46 ? 169 65.3 ? Once you have calculated the BMI for each patient, you need to check the BMI of the patient. If the BMI is <= 18.5, print (Patient # is underweight) If the BMI is > 18.5 and BMI is < 25, print (Patient # is healthy) If the BMI is >= 25, print (Patient # is overweight) LO

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

 Write a python program follow this ;

Create a program that read the file "data_bmi.txt"
1
180
86
2
176
68.8
3
184
74
4
158
46
5
169
65.3
The first column is the patient number, the second column is the patient height (in cm)
and the third column is the patient weight in kilogram.
Once the file is read, you need to create a new numpy array of size 5 x 4. In the first 3
columns, you need to put the same information as from the loaded file and in the
fourth column, you need to calculate the BMI of the patient. BMI = weight (in kg) /
heigh2 (in m)
1
180
86
?
2
176
68.8
?
3
184
74
?
4
158
46
?
169
65.3
?
Once you have calculated the BMI for each patient, you need to check the BMI of the
patient. If the BMI is <= 18.5, print (Patient # is underweight)
If the BMI is > 18.5 and BMI is < 25, print (Patient # is healthy)
If the BMI is >= 25, print (Patient # is overweight)
LO
LO
Transcribed Image Text:Create a program that read the file "data_bmi.txt" 1 180 86 2 176 68.8 3 184 74 4 158 46 5 169 65.3 The first column is the patient number, the second column is the patient height (in cm) and the third column is the patient weight in kilogram. Once the file is read, you need to create a new numpy array of size 5 x 4. In the first 3 columns, you need to put the same information as from the loaded file and in the fourth column, you need to calculate the BMI of the patient. BMI = weight (in kg) / heigh2 (in m) 1 180 86 ? 2 176 68.8 ? 3 184 74 ? 4 158 46 ? 169 65.3 ? Once you have calculated the BMI for each patient, you need to check the BMI of the patient. If the BMI is <= 18.5, print (Patient # is underweight) If the BMI is > 18.5 and BMI is < 25, print (Patient # is healthy) If the BMI is >= 25, print (Patient # is overweight) LO LO
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY