Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| en:modul:m291:learningunits:lu04:loesungen:02 [2025/02/25 12:29] – vdemir | en:modul:m291:learningunits:lu04:loesungen:02 [2025/03/04 09:56] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== LU04.S02 - Elements of a library ====== | + | ====== LU04.S02 - Examples for library-functions |
| {{: | {{: | ||
| - | - freeShipmentAmount = calcFreeShipment(country) | + | - **freeShipmentAmount = calcFreeShipment(country)**: Calculates the free shipment amount regarding the country |
| - | - shoppingCartItems = sumShoppingItems(customerNo, | + | - **shoppingCartItems = sumShoppingItems(customerNo, |
| - | - shoppingCartItems = sumShoppingItems(customerNo, | + | - **shoppingCartItems = sumShoppingItems(customerNo, |
| - | - currentShipmentCost = calcShipmentCost(CustomerNo, | + | - **currentShipmentCost = calcShipmentCost(CustomerNo, |
| - | - shippingDate = (currentDate) | + | - **shippingDate = calcShippingDate(currentDate, availabilityTime):** regarding Swiss date format |
| - | - shoppingCartSum = sumShoopingPrices(customerNo, | + | - **shoppingCartSum = sumShoopingPrices(customerNo, |
| - | - currentPrice = calcActualPrice(price, | + | - **currentPrice = calcActualPrice(price, |
| - | - priceDiscount = calcDiscount(originalPrice, | + | - **priceDiscount = calcDiscount(originalPrice, |
| + | ---- | ||
| + | [[https:// | ||