Question 3 (30 Marks) Adam is a newly appointed programmer in Syarikat Bunga Maju Depan, a small local company in Kota K

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Question 3 (30 Marks) Adam is a newly appointed programmer in Syarikat Bunga Maju Depan, a small local company in Kota K

Post by answerhappygod »

Question 3 30 Marks Adam Is A Newly Appointed Programmer In Syarikat Bunga Maju Depan A Small Local Company In Kota K 1
Question 3 30 Marks Adam Is A Newly Appointed Programmer In Syarikat Bunga Maju Depan A Small Local Company In Kota K 1 (65.38 KiB) Viewed 33 times
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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply