Write code for the following program in C. As per proper coding practice, plan out your program with pseudocode and include this before the main function.
I visited the Field Museum in Chicago a few months ago to look at mummies. You have been asked to write a program that can be used to control the number of people who can be in the exhibition room at the same time. Groups of people can always leave the room (if they are inside), but a group cannot enter the room if they would make the number of people in the room exceed the maximum of 149. There are 5 security guards in the room at all times.
Write a program that reads the sizes of the groups that arrive or depart (user can enter those). Use negative numbers for departures. After each input, display the current number of visitors. As soon as the room holds the maximum allowable number of visitors, report that the room is full and stop accepting new groups (i.e., if a new group arrives, display a message stating that the room is full and no entry is allowed until we have room. You may admit some members from the group if possible depending on the available room). Exit the program if no one from 2 consecutive groups can't enter.