From 82329edf5c7f3c540880ce080d2f372014716e5f Mon Sep 17 00:00:00 2001 From: gitea <3029257@stud.hs-mannheim.de> Date: Sun, 14 Dec 2025 15:39:57 +0100 Subject: [PATCH] Create UML.svg and understand the Versandkostenpreis berechnung --- README.md | 6 ++++++ UML.svg | 2 +- Versandkostenpreis Netto berechnung.svg | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Versandkostenpreis Netto berechnung.svg diff --git a/README.md b/README.md index e69de29..9bccfea 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,6 @@ + +You can open the svgs diagrams here: +https://app.diagrams.net/#Uhttps%3A%2F%2Fgitty.informatik.hs-mannheim.de%2F3029257%2FProgrammiertestat_2%2Fraw%2Fbranch%2Fmain%2FUML.svg +https://app.diagrams.net/#Uhttps%3A%2F%2Fgitty.informatik.hs-mannheim.de%2F3029257%2FProgrammiertestat_2%2Fraw%2Fbranch%2Fmain%2FUML.svg + +Or download and open it with drawio. diff --git a/UML.svg b/UML.svg index 42986a7..4dce9e9 100644 --- a/UML.svg +++ b/UML.svg @@ -1,4 +1,4 @@ -

<<Interface>>
Interface


+ field1: Type
+ field2: Type



+ method1(Type): Type
+ method2(Type, Type): Type

+ redtz




<<Interface>>...
Text is not SVG - cannot display
\ No newline at end of file +
1
1
1
1

ShopTUI


+ OnlineShop shop
+ Scanner sc



+ void main(String[] args)
+ void Menu(OnlineShop, Scanner)


ShopTUI...
1
1
1
1

OnlineShop


+ ArraylĹist<Produkt> lager 

+ ArrayList<Bestellung> bestellungen

+ Warenkorb aktuellerWarenkorb



+ Bool AddProdukt(Produkt)
+ Bool UpdateExistingProdukt(Produkt, NewProdukt)


+ String[] ShowWarenkorb

+ String[] SearchProdukt()

+ Bool AddProduktZuWarenkorb(Produkt)

+ Bool DelProduktAusWarenkorb(Produkt)

+ Bool ChangeProduktInWarenkorb(Produkt, int count)

+ void MoveProduktInWarenkorb(Produkt, int move)

+ void UpdateKundeInWarenkorb(Kunde)


Bool AddBestellung(Warenkorb)

+ String[] ShowBestellungen()

+ void StorniereBestellung(Bestellung)

OnlineShop...

Produkt


 + int id

+ String name

+ int transportGewicht
+ int netto

+ int mwStSatz

+ int lagerbestand


+ int BruttoPreis()

+ void UpdateProdukt(Produkt)

Produkt + int id...

Warenkorb


+ ArrayList<Produkt> inhalt

+ ArrayList<Integer> anzahl

+ Kunde kunde


+ int NettoPreis()

+ int BruttoPreis()

 + int NettoVersandkosten()
 + int BruttoVersandkosten()
 + int NettoGesamtPreis()
 + int BruttoGesamtPreis()

+ Bool AddProdukt(Produkt, int count)

+ Bool DelProdukt(Produkt)

+ Bool ChangeProdukt(Produkt, int count)

+ void MoveProdukt(Produkt, int move)


+ void UpdateKunde(Kunde)

Warenkorb...

Bestellung


+ int id

+ Warenkorb bestellungen
+ Bool storniert


+ void StorniereBestellung(Warenkorb)

Bestellung...

Kunde


+ String name

+ String Adresse

Kunde...
n
n
1
1
1
1
1
1
1
1
1
1
1
1
n
n
1
1
n
n
Text is not SVG - cannot display
\ No newline at end of file diff --git a/Versandkostenpreis Netto berechnung.svg b/Versandkostenpreis Netto berechnung.svg new file mode 100644 index 0000000..9dce903 --- /dev/null +++ b/Versandkostenpreis Netto berechnung.svg @@ -0,0 +1,4 @@ + + + +
Bratwurst
Bratwurst
100kg
100kg
7%
7%
100€
100€
Riesling
Riesling
200kg
200kg
19%
19%
200€
200€
107€
107€
238€
238€
Produkt
Produkt
Gewicht
Gewicht
Mwst
Mwst
Netto
Netto
Brutto
Brutto
Versandkosten berechnung
Versandkosten berech...
19,95€
19,95€
6,21€+11,18€=17,39€
6,21€+11,18€=17,39€
Bratwurst
Bratwurst
7%
7%
Riesling
Riesling
19%
19%
300€
300€
100€/300€=1/3
100€/300€=1/3
200€/300€=2/3
200€/300€=2/3
1/3*19,95€=6,65€
1/3*19,95€=6,65€
2/3*19,95€=13,3€
2/3*19,95€=13,3€
Prottobreis anteilmäßig fürs Produkt berechnet 
Prottobreis anteilmä...
6,65€/1,07=6,21€%3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22%22%20style%3D%22rounded%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3BfillColor%3D%23d5e8d4%3BstrokeColor%3D%2382b366%3Bopacity%3D40%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D%22430%22%20y%3D%22290%22%20width%3D%2240%22%20height%3D%2220%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3C%2Froot%3E%3C%2FmxGraphModel%3E
6,65€/1,07=6,21€%3CmxG...
13,3€/1,19=11,18€
13,3€/1,19=11,18€
Nettopreisanteilig pro Produkt berechnet
Nettopreisanteilig p...
Nettopreis versandkosten
Nettopreis versandkosten
Gesammt Nettopreis Versandgüter
Gesammt Nettopreis V...
Doch damit noch nicht genug, wenn
eine Lieferung nun bspw. Kosten von 100 Euro zu 7% MwSt. und 200 Euro zu
19% MwSt. enthält, muss die MwSt. der 19,95 Euro Versandkosten auch
anteilig nach dem Warenwert verteilt werden. Also 1/3 = 6,65 entfallen
auf 7% (Nettopreis VK: 6,65 / 1,07), 2/3 = 13,30 auf 19% (Nettopreis VK:
13,30 / 1,19).
Doch damit noch nicht genug, wenn...
Text is not SVG - cannot display
\ No newline at end of file