Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
en:modul:m291:learningunits:lu04:loesungen:02 [2025/01/22 10:20] – angelegt vdemiren:modul:m291:learningunits:lu04:loesungen:02 [2025/03/04 09:56] (aktuell) vdemir
Zeile 1: Zeile 1:
-====== LU05.S02 - Control questions ======+====== LU04.S02 - Examples for library-functions ======
  
-===== Instructions ===== +{{:en:modul:m291:learningunits:lu04:loesungen:lu04.s02_elemente_einer_library_loesung.png?800|Solution }}
-{{ :en:modul:m291:learningunits:lu04:loesungen:02_v-directive-ueb2.zip Zipfile with the code solutions }}+
  
-  - Download the Zipfile +  - **freeShipmentAmount = calcFreeShipment(country)**: Calculates the free shipment amount regarding the country 
-  - Unzip the content +  - **shoppingCartItems = sumShoppingItems(customerNo, sessionNo):** Only the figure is relevant 
-  - Copy the code in the //tryout// area of W3-School +  - **shoppingCartItems = sumShoppingItems(customerNo, sessionNo):** differently presented (format) 
-  - Execute the code with the //run// button +  - **currentShipmentCost = calcShipmentCost(CustomerNo, sessionNo, freeShipmentAmount):** Only relevant under the free-shipment limit 
-  - Check the resultwhich is displayed in the right window of the browser+  - **shippingDate = calcShippingDate(currentDate, availabilityTime):** regarding Swiss date format 
 +  - **shoppingCartSum = sumShoopingPrices(customerNo, sessionNo):** Sum of the current shopping cart value, regarding the Swiss VAT 
 +  - **currentPrice = calcActualPrice(pricediscount):** If discount > 0, textcolour is red 
 +  - **priceDiscount = calcDiscount(originalPrice, currentPrice):** Calculates the discount as 
  
 ---- ----
 [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir
-   
  • en/modul/m291/learningunits/lu04/loesungen/02.1737537647.txt.gz
  • Zuletzt geändert: 2025/01/22 10:20
  • von vdemir