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 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 seats in the concert hall. The seats are numbered to so $seating contains the condition of seat and $seating will contain the condition of seat Each array element contains either the value OK or "REPAIR" note that these are uppercase 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 and not 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
