Question: For this exercise you will create a Seating Maintenance Report for a small concert hall. Your chapter 1 1 folder contains seating.html and seating.php .

For this exercise you will create a Seating Maintenance Report for a small concert hall. Your chapter 11 folder contains seating.html and seating.php. The code in seating.html does not need to be changed. You will see that your seating.php file already includes an array named $seating that stores the condition of each of the 100 seats in the concert hall. The seats are numbered 1 to 100, so $seating[0] contains the condition of seat 1, and $seating[99] will contain the condition of seat 100. Each array element contains either the value "OK" or "REPAIR" (note that these are upper-case). Provide a FOR loop to process the array and print the numbers of every seat that needs to be repaired. You will need an IF structure in the loop that uses the loop index variable to test the next element in the array each time the loop repeats. Remember that the array index begins with 0 and not 1 when you print the seat numbers. The loop should ALSO count the seats that need to be repaired and report the total count of seats in need of repair at the end of the list.
For this exercise you will create a Seating

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 Accounting Questions!