Dies ist eine alte Version des Dokuments!


LU04.S02 - Elements of a library

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 = (currentDate) –> 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
  • en/modul/m291/learningunits/lu04/loesungen/02.1740482980.txt.gz
  • Zuletzt geändert: 2025/02/25 12:29
  • von vdemir