Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Code is written in C Write a program that does blood work calculations for a lab technician. 1) The program should loop asking the technician
Code is written in C
Write a program that does blood work calculations for a lab technician. 1) The program should loop asking the technician for the type of measurement needed. 2) The technician should be able to use the numbers indicated in () after the measurement in the list below to select the type of measurement. It should not matter which of the numbers is used. Based on the measurement type selected (use a switch statement to accomplish this), the program should ask for the appropriate values, use the equation provided to calculate the required value, display the value to the technician, and if necessary flag any warnings. The program should end when the technician does not select a valid measurement type. 3) 4) 5) Assume all measurement values provided can be floats Measurement Types: A/G ratio, A/G: (2,5) Needed values: albumin (g/dl) total protein (g.dl) A/G- albumin/(total protein albumin) Warning if A/G ratio is not between 0.7 and 2.2 Mean cell volume, MCV:_(3,4) Needed values: hematocrit (%), red blood cells (x 1012/L) MCV (hematocrit* 10)/rbc Warning i MCV is not between 85 and 105 f Mean cell hemoglobin, MCH:(1) Needed values: hemoglobin (g/dL), red blood cells (x 1012/L) MCH (hemoglobin * 10)/rbc Warning if MCH is not between 25 and 33 pg Absolute Neutrophil Count, ANC: (6,7,8) Needed values: white blood count (x 103/u) segmented neutrophils (%) segmented bands (%) ANC- WBC x (segmented neutrophils segmented bands) x 10 Warning if ANC is less than 1000 //Make sure that your code is well commentedStep 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