LU04.S02 - Examples for library-functions

Solution

  1. freeShipmentAmount = calcFreeShipment(country): Calculates the free shipment amount regarding the country
  2. shoppingCartItems = sumShoppingItems(customerNo, sessionNo): Only the figure is relevant
  3. shoppingCartItems = sumShoppingItems(customerNo, sessionNo): differently presented (format)
  4. currentShipmentCost = calcShipmentCost(CustomerNo, sessionNo, freeShipmentAmount): Only relevant under the free-shipment limit
  5. shippingDate = calcShippingDate(currentDate, availabilityTime): regarding Swiss date format
  6. shoppingCartSum = sumShoopingPrices(customerNo, sessionNo): Sum of the current shopping cart value, regarding the Swiss VAT
  7. currentPrice = calcActualPrice(price, discount): If discount > 0, textcolour is red
  8. priceDiscount = calcDiscount(originalPrice, currentPrice): Calculates the discount as

Volkan Demir

  • en/modul/m291/learningunits/lu04/loesungen/02.txt
  • Zuletzt geändert: 2025/03/04 09:56
  • von vdemir