Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that reads and processes sets of data until a sentinel value of

ID: 645439 • Letter: W

Question

Write a program that reads and processes sets of data until a sentinel value of a negative number. The first number in a set is a room number, the second is the room's capacity, and the third is the size of the class scheduled to meet in that room. For each triplet set, print an output line showing the classroom number, capacity, number of seats filled, number of seats available, and a message ("FULL" or "OPEN") indicating whether the classroom is filled or not. After all classrooms have been processed, a summary is to be printed.

Explanation / Answer

#include struct ClassRoom { char[20] room_no; int capacity; int size_of_class; }room[3]; int main(int argc, char *argv[]) { int i; for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote