Question: construct a solution algorithm for the following problems your question...
Construct a solution algorithm for the following problems. Your question solution should contain:
Pseudo code algorithm
Desk check of the algorithm
o (Three test cases for each question. Two valid and one error test case if appropriate)
A clinic requires a program to calculate the body mass index (BMI) and display the BMI value and status of a patient. Develop a program to accept the height and weight of a patient, calculate the BMI and display BMI value and status of a patient.
BMI = weight in kg/height2
|Below 24 (inclusive)||Under weight|
|Above 24 to 29 (inclusive)||Healthy|
|Above 29 to 34 (inclusive)||Overweight|
Error check required: negative height and weight.
Assume user always enter number.
If the user enter invalid height or weight, print error message and ends the program.