Question: Develop a simple form application in PHP (q1_form.php, q1_calc.php) to calculate the price of a car. Develop a simple form application (q1_ form.php, ql_calcphp) to
Develop a simple form application in PHP (q1_form.php, q1_calc.php) to calculate the price of a car.

Develop a simple form application (q1_ form.php, ql_calcphp) to calculate the price of a car. In the form, user can choose the brand of car, airbag and engine volume. According to user selection, a php program will calculate the price of the customized car. User can select the following criteria as in Figure1 1. Car brands: There are three car brands, namely, Astra, Civic and Megane. The base price of those cars are 20000 TL, 25000 TL and 18000 TL respectively 2. Engine Volume Size: Each brand has three options as follows: 1.6, 1.8 and 2.0 lt. 3. Airbag option: adding airbag to a car cost 2000 TL. lf the car plate is in correct format, the price is calculated as follows Car PriceBase Price Engine Volume Airbag cost (if airbag is selected) For example; If a user selects Civic with 1.8 engine volume size and airbag Price 25000 1.82000 47000 TL The php program displays the results as in Figure 2.a Car Plate format: Plate starts with two digits, and one space, and one to three letters (lower or uppercase), and one space, and two to four digits [Regular Expression: @eregi( "A[0-91 (2) [a-z](1,3) [0-9112,41S", Splate)]. Valid Examples: 06 AVE 3456, 85 K 23, 99 TKM 324, 13 AT 345, 26 PL 0987. If car plate is not in the correct format, it displays as in Figure 2.b Figure 1:Form to select car properties Car Plate: 34 AT 234 Car Brand Astra v Figure 2.a: Calculation result Total Price for Astra is 38000 TL Back ag O 1.6 1.8 2.0 Calculate Figure 2.b Plate is not correct Plate is not correct. Back
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
