Question
Consider you are working with a hospital to help them managing COVID-19 infected patients' information. You are writing a program to store the patients' information
Consider you are working with a hospital to help them managing COVID-19 infected patients'
information. You are writing a program to store the patients' information so that hospital authority
can use them to provide better service to the patients.
For each patient you store name, age and gender ('M' or 'F').
i. How can you only use array to store all patients' information?
ii. How can you only use structure to store all patients' information?
iii. Write code for case i above so that it outputs most no. of patients ('M' or 'F').
iv. Write code for case ii above so that it outputs most no. of patients ('M' or 'F').
For all questions explain and write an appropriate C code segment when necessary.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started