Question: Write the following program in c: 3. Write a c program that reads patient test sample (RBC count). If RBC count is less than 20
Write the following program in c:

3. Write a c program that reads patient test sample (RBC count). If RBC count is less than 20 then output patient is normal no treatment cost. If RBC count is between 20 to 40 then output patient need treatment and cost for treatment is 10.5 OMR. If RBC count is between 41 to 50 then output patient is abnormal and emergency treatment needed, then cost for treatment is 50 OMR. If RBC count greater than 50 then output patient has cancer and cost for treatment is 200 OMR. 4 rial is collected from all the patients as consultation fee. Discount of 15% is given if patient has cancer and discount of 5% for other treatments on the total bill. Calculate final total bill (up to 3 decimal places) to be paid by the patient. (10 marks) Output Format: RBC COUNT 50 abnormal emergency treatment required final total bill is 52.250
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
