Brian O.

asked • 05/31/21

programming in c

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


Patrick B.

It is easier to input the data from file rather than input every time the program begins
Report

06/01/21

1 Expert Answer

By:

Patrick B. answered • 05/31/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.