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 patients2. Number of patients whose code is 7993. Average number of days spent in hospital among patients over 55 years of age4. Older age among patients seen between type 2 and 4 consultations5. Younger age among patients who have been hospitalized for more than 3 days6. Exit

Looking for this or a Similar Assignment? Click below to Place your Order

Open chat