Question: Problem 2) (15 points) Develop a C program that manages an airplane seat reservation system for a plane of 5 seats and achieves the behavior

 Problem 2) (15 points) Develop a C program that manages an

Problem 2) (15 points) Develop a C program that manages an airplane seat reservation system for a plane of 5 seats and achieves the behavior as shown in the sample code execution below. Your program must use the following array int seats(5] or char seats/5 bove array to keep track of whether each seat is available or occupied. Note:-10 points if the a is not used in your code. Sample code execution: Red entered by a usern Press s to select a seat or q to quit: Avallable seats: 12345 select your seat number:8 select your seat number: 10 select your seat number:3 You are assigned seat number 3 Press s to select a seat or q to quit: Available seats: 1245 select your seat number: 3 Seat number 3-occupied, select another seat select your seat number:5 select your seat number: 2 You are assigned seat number 2 Press s to select a seat or q to quit: Avallable seats: 145 select your seat number:1 You are assigned seat number 1 Press s to select a seat or q to quit: Avallable seats: 45 select your seat number:4 You are assigned seat number 4 Press s to select a seat or q to quit:q Seats still available:5 Good Bye Sample code execution #2: Red entered by a user Press s to select a seat or q to quit: Available seats: 12345 select yourseat number: 1 You are assigned seat number 1 Press s to select a seat or q to quit: Avallable seats: 2345 select your seat number:1 Seat number 1 -occupied, select another seat You are assigned seat number 5 Press s to select a seat or q to quit:q Seats still available: 234 Good Bye

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!