Question: URGENT!!! PHP WORK
Christmas is almost here, and soon - recalling our childhood - we can climb under the tree to get some candy from the tree and eat it in the back corner. That is why it is important what kind of candy we buy. In the file, you will find the registry of a shop selling candies. The array contains the brand, the type, and the price of a candy available in the shop. Based on this, you need to generate the following table: - a. (2 pts) In the furst row of the table, list the different types of candy (type) sold in the store as a table header! - b. (1 pt) In the first column of the following rows of the table, list the different brands of candy sold in the store (brand) as table headers! - c. (1 pt) Sort the types and the brands in ascending alphabetical order! - d. (2 pts) Write the corresponding price in a table cell determined by the brand and type! - e. (1 pt) Give the table cell, containing the price, the or style class, if the given price is the least or most expensive in the table, respectively! - f. (1 pt) In the last column of the table, show the average price of the types of candies from the given brand! Help: you can use c and * functions for a more efficient solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
