Examine the pseudocode sample provided, and explain what it does line by line. Unit 5 Pseudocode Sample Description: This function applies discount percentage on an item price unless the item price is less than the wholesale price. For example, a product at $10 with a wholesale price of $5 and a discount of 10% returns $9. function applyDiscount(productPrice : Double, wholesale price: Double, discount: Double) Return Double Create variable discounted price as double discounted price = productPrice * (1 – discount) if (discounted price
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 1 | 2 |