Question 3 (30 Marks) Adam is a newly appointed programmer in Syarikat Bunga Maju Depan, a small local company in Kota K
Posted: Thu Jul 14, 2022 2:11 pm
Question 3 (30 Marks) Adam is a newly appointed programmer in Syarikat Bunga Maju Depan, a small local company in Kota Kinabalu. Adam is responsible to develop the company online florist shop that provides delivery around Kota Kinabalu area. His main duty is to maintain both the website and database. The programming language used to develop the system is PHP and MySQL database. Table 1 shows the flower price lists and Figure 7 shows the online florist shop order form interface. Table 1 Flower Price List Figure 7 Order Form Interface a) Write a JavaScript function calcFlowerPrice() to calculate the sum of flower prices based on the customer order. This function should check for the following conditions: i) The flower type is mandatory but the accessories field is optional. The customer may choose more than one accessories per-order form. ii) The Delivery Charge of 5% is based on the postal code range of 88000 88999 . If the user enters invalid value or range, the system should prompt for invalid entry and will not calculate the Delivery Charge. iii) Upon validated form, the customer should be presented with an alert that calculates the sum of fiower price, additional accessories and delivery charge. (12 marks)