+O localho..* >>localh... >>Ticket TypeOBusiness O EconomyThe ticket net price is 2100 poundsPassenger Age ChildBook FlightIt is usually very important to validate the data entered by the...


6. Write a PHP program that calculates the net price of a ticket booked by a<br>passenger. The user inputs the ticket type (business/economy), as well as the<br>age of the passenger (infant/child/adult). Then, the program calculates and<br>prints the net price after subtracting the discount amount.<br>Tip: net price = price – (price x discount)<br>Given the following booking data:<br>Ticket Type<br>Age<br>Infant<br>Discount<br>Price<br>50% (0.5)<br>Child 25% (0.25)<br>Business Class<br>5200 Pounds<br>Economy Class 2800 Pounds<br>Adult<br>0%<br>> +<br>O localho<br>..* >><br>localh<br>... >><br>Ticket Type<br>OBusiness O Economy<br>The ticket net price is 2100 pounds<br>Passenger Age Child<br>Book Flight<br>It is usually very important to validate the data entered by the user (i.e. make<br>sure it is entered properly). Write a program to validate a registration form that<br>contains a username, password, and a password confirmation. The username,<br>password, password confirmation must not be empty (all fields are mandatory).<br>Also, the password and its confirmation must be the same.<br>7.<br>Registration x<br>W localhost:80 x<br>O localhost:8. ☆<br>+ > C O0 localhost:8. 6<br>E Apps * Bookmarks<br>E Apps * Bookmarks<br>Username<br>Error. Username is not entered.<br>Password<br>Confirm Password<br>Register<br>Reset<br>Page 4 of 7<br>II<br>

Extracted text: 6. Write a PHP program that calculates the net price of a ticket booked by a passenger. The user inputs the ticket type (business/economy), as well as the age of the passenger (infant/child/adult). Then, the program calculates and prints the net price after subtracting the discount amount. Tip: net price = price – (price x discount) Given the following booking data: Ticket Type Age Infant Discount Price 50% (0.5) Child 25% (0.25) Business Class 5200 Pounds Economy Class 2800 Pounds Adult 0% > + O localho ..* >> localh ... >> Ticket Type OBusiness O Economy The ticket net price is 2100 pounds Passenger Age Child Book Flight It is usually very important to validate the data entered by the user (i.e. make sure it is entered properly). Write a program to validate a registration form that contains a username, password, and a password confirmation. The username, password, password confirmation must not be empty (all fields are mandatory). Also, the password and its confirmation must be the same. 7. Registration x W localhost:80 x O localhost:8. ☆ + > C O0 localhost:8. 6 E Apps * Bookmarks E Apps * Bookmarks Username Error. Username is not entered. Password Confirm Password Register Reset Page 4 of 7 II
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here