Question: Write a C program that does the following: 1. (2 points) Declare a structure called Subject with the following members: subName (string), instructorname(string), capacity(int), subID(int).
Write a C program that does the following: 1. (2 points) Declare a structure called Subject with the following members: subName (string), instructorname(string), capacity(int), subID(int). 2. (3 points) Ask the user to enter the information of 10 subjects and save them in an array called SUBJECTS. 3. (3 points) Print the name of the subject(s) that has thave) an ID equal to 7. 4. (5 points) Write a function called MinCapacity that takes the array SUBJECTS as an argument and returns the subject with minimum capacity 5. (2 points) In the main, call the function MinCapacity and print the information of the subject with minimum capacity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
