Question: Create a program in C using Conditionals, Loops, Bubble Sort, and Arrays. Your classroom program will help teachers by automatically assign the most appropriate class

Create a program in C using Conditionals, Loops, Bubble Sort, and Arrays.
Your classroom program will help teachers by automatically assign the most appropriate class room based on the capacity of the classrooms available and the number of students expected to be enrolled in a given course.
To complete this assignment, you will need to understand Conditionals, Loops and Arrays.
Write a program that uses the data provided in the table below using arrays to determine the best classroom for the list of classes provided by the teacher.
Room Capacity
101 8
102 25
103 33
104 50
105 51
200 70
201 88
202 15
203 100
204 66
Create a program which prompts the user to enter in the following information for up to 5 courses:
Course Number
Enrollment
If the user enters E after listing their courses or the user enters 5 courses determine the best classroom for each course based on the number of students to be enrolled. The best room will have the least number of remaining seats.
For example, if I entered enrollments of 24 students for course 1 and 25 students for course 2, I would expect course 1 to be assigned Room 102 and course 2 to be assigned room 103.
HINT: Sort the data by capacity, use a bubble sorting algorithm in a function called Sort where your arrays are parameters (will be covered in lecture)
The output should look like this:
Room Assignments
Course Room Capacity Enrollment Number of Empty Seats
1 102 25 24 1
2 103 33 25 8
Save your program as ClassroomScheduler_01.c
Turn in ClassroomScheduler_01.c
 Create a program in C using Conditionals, Loops, Bubble Sort, and

The output should look like this: Room Assignments Course Room 102 103 25 24 2 Save your program as ClassroomScheduler_01.c Turn in ClassroomScheduler 01.c 25 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!