Question: Would appreciate some insight into functions used, as i am struggling with the proper way to utilize void functions. Thank you in advance. You are


Would appreciate some insight into functions used, as i am struggling with the proper way to utilize void functions. Thank you in advance.
You are hired by the university to write a program that will take user input regarding classrooms and output some general class size information as well as some comprehensive information. To do this you will need to write a complete program that reads and processes sets of data containing three pieces of information for each room in the following order: 1. the room number, 2. the maximum capacity of the room, 3. and the current number of students enrolled. A negative value for the room number ends the user input. For each room, you will need to output information that displays the classroom number, maximum capacity, and number of seats filled (enrolled), as well as, the number of seats available, and a message ("FULL", "OPEN", "OVER") indicating whether the classroom meets enrollment, has available seats, or is over enrolled. After all classrooms have been processed, a general summary regarding all rooms should also be output. Program Requirements 1. Follow the style guide. 2. All input will come from stdin which means you will be using cin. Read the note included in the sample runs to see how to test your program without having to type all of the information from the files. 3. DO NOT open the file and use it within your program. 4. You must include the following functions: - ReadRoomData: a void function that accepts three reference parameters (the room number, max capacity, and enrolled). It should read in all three values from stdin. - Determinestatus: a value-returning function that has one parameter (available enrollment). It should return a std: string containing the status of the room (OPEN, FULL, OVER) - OutputRoominfo: a void function that accepts three value parameters (room, max capacity, and enrolled). It should call Determinestatus and output the formatted room information for that single set of data. 5. All output should be spelled, spaced, and formatted according to the sample runs 5. All output should be spelled, spaced, and formatted according to the sample runs below. 6. DO NOT FORGET to submit a zip file containing just the main.cpp file to the Open Lab 2 dropbox on D2L. Sample Runs In order to test these programs, you will need to make use of input redirection in the shell. Input redirection is a feature of our operating system that allows us to pass input from a file over stdin (the keyboard buffer) without having to open and connect to the file within our program. In the shell, you can execute the following command after you compile your program: ./a.out
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
