Question: C programming QUESTION 4 Write a program that determines patients' health test results based on their glycated haemoglobin (HbA1c) reading. The requirements of the program

C programming
QUESTION 4 Write a program that determines patients' health test results based on their glycated haemoglobin (HbA1c) reading. The requirements of the program are: In main(); **Prompt for input HbA1c. User must key in valid HbA1c values of between (including) 1.0 10.0. If the user key in an invalid HbA1c value, display error message, and prompt for the HbA1c input again (Note: HbA1c should be declared as a local variable). **Call function ProcessResult...) passing in HbA1c as the argument. Lastly, ask the user whether to continue processing another patient health test result. If the user say "Yes", repeat * again. Declare and define function ProcessResult (...): Determine the diabetic result based on HbA1c: HbA1c Diabetic test result Below 6.0 Normal 6.0 to 6.4 Prediabetic Above 6.4 Diabetic Calculate plasma glucose (HbA1c * 35.6 - 77.3) Calculate white blood glucose (plasma glucose i 1.12) Display the test result (HbA1c, Diabetic test result, plasma glucose, and white blood glucose. Rround all calculated values to 1 decimal place (design a suitable output format) Requirements of the program: functions, if-else selection structure, looping structure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
