Question: Write a C-code for a program that reads the age of 25 patients. The program should read two numbers for every patient: The first number

Write a C-code for a program that reads the age of 25 patients. The program should read two numbers for every patient:

The first number indicates the test result: if the patient is positive_COVID-19 then enter 1 and if negative_COVID-19 enter -1.

The second number: the patient's age.

Your program should then calculate and print the following:

1. The average age of all patients.

2. Number of negative COVID-19 patients.

3. Find the test result (positive or negative) for the oldest patient.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!