Question: HTML PHP 5. copy Your chapter07 folder already contains a file named ticket-comer chapter07 folder. Your modify your event.php file so that, after receiving the

 HTML PHP 5. copy Your chapter07 folder already contains a file

HTMLnamed ticket-comer chapter07 folder. Your modify your event.php file so that, after

PHPreceiving the for-count.txt. You are going to modif of tickets sold (the

5. copy Your chapter07 folder already contains a file named ticket-comer chapter07 folder. Your modify your event.php file so that, after receiving the for-count.txt. You are going to modif of tickets sold (the number in ticket-count form inputs, it will check the count of tickere either process the order or report that the and then use an IE. ELSE structure to either the performance venue there that enough seats available. Assume that the performance venue has seating for 100 . You will need to think carefully about the order of your instructions and the placement of braces in your IF.ELSE structure. To check for available seats, after receiving the input from the form, your event.php program must: (1) open ticket-count.txt for read operations, read the count of tickets already sold, and close the file; (2) calculate the number of seats available (this will be 100 minus the count of seats already sold); and (3) use an IF.ELSE structure that tests whether the current order exceeds the number of available seats. If so, the program should simply notify the user that there are not enough tickets remaining to complete the order, otherwise the program should go ahead and process the order (this includes updating the ticket-count.txt file so that it contains the new count). Test your work to be sure that it works correctly in either situation. Does it work correctly if the number of seats being ordered is EXACTLY the number of available

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!