Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C lenguage BMl or Body Mass Index is a health parameter that can be calculated using the following formula LaTex a) Write a function called
C lenguage
BMl or Body Mass Index is a health parameter that can be calculated using the following formula LaTex a) Write a function called bmiCalc that takes two parameters weight (pound) and height (nches) and returns BMI. (15 points) bj Write a function called range that takes an array of floating-point numbers and size of the aray and returns the difference of the maxcimum value and the minimum value of the members of the array. (15 points) c) Use these functions in a program that determines and prints the range of BMils of 5 patients before and after a 4-week diet 1. The program should ask user to enter the weights and the heights of the patients before and after the diet. (10 points) 2 These data should be stored in two arrays called weight, and height. (10 points) Then the calculated BMI of the patents should be stored two arrays cated beforepotasar and afterDietOM. (10 points) The range of the arrays beforeDietBMI and afterDietBMI should be caloulated usink function range and printed.(10 points Mthe range of the Bans of the patients after the diet show a mrinum 5% reduction then the program should show the message . The print There is no significant change.".(10 points) et has been enectve. Otherwise it should & Choose an appropriate format for input and output 7. Enough comments (10 points) a Indentation (10 points) 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