Question: webapps%252Fblackboard%252Fexecute%252Fenroll Course%3Fcontext%3DCourse%26com... x Remaining Time: 24 minutes, 53 seconds. Less than half of the time remains. * Question Completion Status: Write a program that reads



webapps%252Fblackboard%252Fexecute%252Fenroll Course%3Fcontext%3DCourse%26com... x Remaining Time: 24 minutes, 53 seconds. Less than half of the time remains. * Question Completion Status: Write a program that reads 2-D array from the user which contains the following data: The first column is ID The second column is weight The third column is height The program must first make sure that the 2-D array is positive. Then it calculates BMI (overweight people with BMI > 25). After that it must display the count and data of overweight people otherwise display 'Not Found'. Finally ask him if he wants to continue or no. Your program should have the same format like the following sample: BMI = weight / height 2 Input/output Sample: Enter people data: [1 -50 1.59; 2 70 1.75; 3 45 -1.65; 4 120 1.88; 5 88 1.60; 6 98 1.80] Error!! Re-Enter people data: [1 50 1.59; 2 70 1.75; 3 45 1.65; 4 120 1.88; 5 88 1.60; 6 98 1.80] There are 3 overweight people ID Weight Height BMI w : ENG 11:42 ve -/-1 9 Time: 24 minutes, 44 seconds. 6252Fexecute%252FenrolCourse%3Fcontext%3DCourse%26com * Question Completion Status: Less than half of the time remains There are 3 overweight people 2 ID 4 5 6 Weight Height BMI 120 1.88 34.0 88 1.60 34.4 98 1.80 30.2 Do you want to continue? y Enter people data: [1 84 1.85; 2 55 1.75; 3 66 1.70; 4 70 1.85] No overweight people Do you want to continue? n For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B I S Paragraph Arial A 14px V I, 11:42 vo Time: 24 minutes, 44 seconds. 6252Fexecute%252FenrolCourse%3Fcontext%3DCourse%26com * Question Completion Status: Less than half of the time remains There are 3 overweight people 2 ID 4 5 6 Weight Height BMI 120 1.88 34.0 88 1.60 34.4 98 1.80 30.2 Do you want to continue? y Enter people data: [1 84 1.85; 2 55 1.75; 3 66 1.70; 4 70 1.85] No overweight people Do you want to continue? n For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B I S Paragraph Arial A 14px V I, 11:42 vo webapps%252Fblackboard%252Fexecute%252Fenroll Course%3Fcontext%3DCourse%26com... x Remaining Time: 24 minutes, 53 seconds. Less than half of the time remains. * Question Completion Status: Write a program that reads 2-D array from the user which contains the following data: The first column is ID The second column is weight The third column is height The program must first make sure that the 2-D array is positive. Then it calculates BMI (overweight people with BMI > 25). After that it must display the count and data of overweight people otherwise display 'Not Found'. Finally ask him if he wants to continue or no. Your program should have the same format like the following sample: BMI = weight / height 2 Input/output Sample: Enter people data: [1 -50 1.59; 2 70 1.75; 3 45 -1.65; 4 120 1.88; 5 88 1.60; 6 98 1.80] Error!! Re-Enter people data: [1 50 1.59; 2 70 1.75; 3 45 1.65; 4 120 1.88; 5 88 1.60; 6 98 1.80] There are 3 overweight people ID Weight Height BMI w : ENG 11:42 ve -/-1 9 Time: 24 minutes, 44 seconds. 6252Fexecute%252FenrolCourse%3Fcontext%3DCourse%26com * Question Completion Status: Less than half of the time remains There are 3 overweight people 2 ID 4 5 6 Weight Height BMI 120 1.88 34.0 88 1.60 34.4 98 1.80 30.2 Do you want to continue? y Enter people data: [1 84 1.85; 2 55 1.75; 3 66 1.70; 4 70 1.85] No overweight people Do you want to continue? n For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B I S Paragraph Arial A 14px V I, 11:42 vo Time: 24 minutes, 44 seconds. 6252Fexecute%252FenrolCourse%3Fcontext%3DCourse%26com * Question Completion Status: Less than half of the time remains There are 3 overweight people 2 ID 4 5 6 Weight Height BMI 120 1.88 34.0 88 1.60 34.4 98 1.80 30.2 Do you want to continue? y Enter people data: [1 84 1.85; 2 55 1.75; 3 66 1.70; 4 70 1.85] No overweight people Do you want to continue? n For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B I S Paragraph Arial A 14px V I, 11:42 vo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
