Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

program in c(not in c++ or c#), using if and while for the following situation: In a hospital, patients are registered, for each patient the following are registered: patient code (integer), age, g

program in c(not in c++ or c#), using if and while for the following situation:

In a hospital, patients are registered, for each patient the following are registered: patient code (integer), age, gender, type of consultation (1, 2 or 3) and days of hospitalization. Data entry is complete when enter a product whose code is negative or zero.

It should show through a menu:

1. Number of hospitalized patients

2. Number of patients whose code is 799

3. Average number of days spent in hospital among patients over 55 years of age

4. Older age among patients seen between type 2 and 4 consultations

5. Younger age among patients who have been hospitalized for more than 3 days

6. Exit

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question