From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Bachelor/Softwaretechnik1/.directory | 2 + .../Softwaretechnik1/RH_SWT1_00_Motivation.pdf | Bin 0 -> 510252 bytes Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf | Bin 0 -> 317321 bytes .../Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf | Bin 0 -> 93593 bytes Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf | Bin 0 -> 94333 bytes Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf | Bin 0 -> 1514490 bytes Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf | Bin 0 -> 269230 bytes Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf | Bin 0 -> 171735 bytes .../Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf | Bin 0 -> 115654 bytes Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf | Bin 0 -> 53966 bytes Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf | Bin 0 -> 3396077 bytes Bachelor/Softwaretechnik1/a1.pdf | Bin 0 -> 70217 bytes Bachelor/Softwaretechnik1/a2.pdf | Bin 0 -> 19281 bytes Bachelor/Softwaretechnik1/a3.pdf | Bin 0 -> 60582 bytes .../Softwaretechnik1/buehler_swt1_probeklausur.pdf | Bin 0 -> 35761 bytes Bachelor/Softwaretechnik1/code/bankding/bfs | Bin 0 -> 15836 bytes .../Softwaretechnik1/code/bankding/girokonto.cpp | 54 ++++++++++++ .../Softwaretechnik1/code/bankding/girokonto.hpp | 72 ++++++++++++++++ Bachelor/Softwaretechnik1/code/bankding/konto.cpp | 64 ++++++++++++++ Bachelor/Softwaretechnik1/code/bankding/konto.hpp | 84 ++++++++++++++++++ Bachelor/Softwaretechnik1/code/bankding/main.cpp | 43 ++++++++++ Bachelor/Softwaretechnik1/code/dauerauftrag.cpp | 63 ++++++++++++++ Bachelor/Softwaretechnik1/code/dauerauftrag.hpp | 94 +++++++++++++++++++++ Bachelor/Softwaretechnik1/code/girokonto.cpp | 78 +++++++++++++++++ Bachelor/Softwaretechnik1/code/girokonto.hpp | 87 +++++++++++++++++++ Bachelor/Softwaretechnik1/skriptSWTV2.pdf | Bin 0 -> 3302676 bytes Bachelor/Softwaretechnik1/swtBank/.cdtbuild | 25 ++++++ Bachelor/Softwaretechnik1/swtBank/.cdtproject | 18 ++++ Bachelor/Softwaretechnik1/swtBank/.project | 19 +++++ .../Softwaretechnik1/swtBank/Debug/girokonto.d | 10 +++ Bachelor/Softwaretechnik1/swtBank/Debug/konto.d | 8 ++ Bachelor/Softwaretechnik1/swtBank/Debug/main.d | 10 +++ Bachelor/Softwaretechnik1/swtBank/Debug/makefile | 30 +++++++ Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk | 13 +++ Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk | 16 ++++ Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk | 46 ++++++++++ Bachelor/Softwaretechnik1/swtBank/Debug/swtBank | Bin 0 -> 188063 bytes Bachelor/Softwaretechnik1/swtBank/girokonto.cpp | 53 ++++++++++++ Bachelor/Softwaretechnik1/swtBank/girokonto.hpp | 70 +++++++++++++++ Bachelor/Softwaretechnik1/swtBank/konto.cpp | 60 +++++++++++++ Bachelor/Softwaretechnik1/swtBank/konto.hpp | 79 +++++++++++++++++ Bachelor/Softwaretechnik1/swtBank/main.cpp | 53 ++++++++++++ .../Softwaretechnik1/weber_swt1_klausur_ss04.doc | Bin 0 -> 38912 bytes 43 files changed, 1151 insertions(+) create mode 100644 Bachelor/Softwaretechnik1/.directory create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf create mode 100644 Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf create mode 100644 Bachelor/Softwaretechnik1/a1.pdf create mode 100644 Bachelor/Softwaretechnik1/a2.pdf create mode 100644 Bachelor/Softwaretechnik1/a3.pdf create mode 100644 Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf create mode 100644 Bachelor/Softwaretechnik1/code/bankding/bfs create mode 100644 Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp create mode 100644 Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp create mode 100644 Bachelor/Softwaretechnik1/code/bankding/konto.cpp create mode 100644 Bachelor/Softwaretechnik1/code/bankding/konto.hpp create mode 100644 Bachelor/Softwaretechnik1/code/bankding/main.cpp create mode 100644 Bachelor/Softwaretechnik1/code/dauerauftrag.cpp create mode 100644 Bachelor/Softwaretechnik1/code/dauerauftrag.hpp create mode 100644 Bachelor/Softwaretechnik1/code/girokonto.cpp create mode 100644 Bachelor/Softwaretechnik1/code/girokonto.hpp create mode 100644 Bachelor/Softwaretechnik1/skriptSWTV2.pdf create mode 100644 Bachelor/Softwaretechnik1/swtBank/.cdtbuild create mode 100644 Bachelor/Softwaretechnik1/swtBank/.cdtproject create mode 100644 Bachelor/Softwaretechnik1/swtBank/.project create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/konto.d create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/main.d create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/makefile create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk create mode 100644 Bachelor/Softwaretechnik1/swtBank/Debug/swtBank create mode 100644 Bachelor/Softwaretechnik1/swtBank/girokonto.cpp create mode 100644 Bachelor/Softwaretechnik1/swtBank/girokonto.hpp create mode 100644 Bachelor/Softwaretechnik1/swtBank/konto.cpp create mode 100644 Bachelor/Softwaretechnik1/swtBank/konto.hpp create mode 100644 Bachelor/Softwaretechnik1/swtBank/main.cpp create mode 100644 Bachelor/Softwaretechnik1/weber_swt1_klausur_ss04.doc (limited to 'Bachelor/Softwaretechnik1') diff --git a/Bachelor/Softwaretechnik1/.directory b/Bachelor/Softwaretechnik1/.directory new file mode 100644 index 0000000..5495c66 --- /dev/null +++ b/Bachelor/Softwaretechnik1/.directory @@ -0,0 +1,2 @@ +[URL properties] +ViewMode=konq_detailedlistview diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf new file mode 100644 index 0000000..88c4fb0 Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_00_Motivation.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf new file mode 100644 index 0000000..7c6063d Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_00__Orga.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf new file mode 100644 index 0000000..94298db Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_01_Einfuehrung.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf new file mode 100644 index 0000000..555c30b Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_02_OO.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf new file mode 100644 index 0000000..608fefb Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_03_UML.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf new file mode 100644 index 0000000..83b9800 Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_04_UseCases.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf new file mode 100644 index 0000000..63f312a Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_05_Klassen.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf new file mode 100644 index 0000000..3555913 Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_06_Assoziationen.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf new file mode 100644 index 0000000..d57f714 Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_07_Diagramme.pdf differ diff --git a/Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf b/Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf new file mode 100644 index 0000000..63a3f33 Binary files /dev/null and b/Bachelor/Softwaretechnik1/RH_SWT1_Komplett.pdf differ diff --git a/Bachelor/Softwaretechnik1/a1.pdf b/Bachelor/Softwaretechnik1/a1.pdf new file mode 100644 index 0000000..f0d842b Binary files /dev/null and b/Bachelor/Softwaretechnik1/a1.pdf differ diff --git a/Bachelor/Softwaretechnik1/a2.pdf b/Bachelor/Softwaretechnik1/a2.pdf new file mode 100644 index 0000000..0b3946b Binary files /dev/null and b/Bachelor/Softwaretechnik1/a2.pdf differ diff --git a/Bachelor/Softwaretechnik1/a3.pdf b/Bachelor/Softwaretechnik1/a3.pdf new file mode 100644 index 0000000..8e41439 Binary files /dev/null and b/Bachelor/Softwaretechnik1/a3.pdf differ diff --git a/Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf b/Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf new file mode 100644 index 0000000..84f3818 Binary files /dev/null and b/Bachelor/Softwaretechnik1/buehler_swt1_probeklausur.pdf differ diff --git a/Bachelor/Softwaretechnik1/code/bankding/bfs b/Bachelor/Softwaretechnik1/code/bankding/bfs new file mode 100644 index 0000000..36b1ce8 Binary files /dev/null and b/Bachelor/Softwaretechnik1/code/bankding/bfs differ diff --git a/Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp b/Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp new file mode 100644 index 0000000..389b90f --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/girokonto.cpp @@ -0,0 +1,54 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:16 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/girokonto.cpp + * + */ + + +// ino.module.girokonto.419.includes +#include "girokonto.hpp" +// ino.end + + +// ino.method.Girokonto.412.definition +systemModel::AnalyseModell::Girokonto::Girokonto(void) +// ino.end +// ino.method.Girokonto.412.body +{ + ueberziehungsKredit=1000; +} +// ino.end + +// ino.method.~Girokonto.409.definition +systemModel::AnalyseModell::Girokonto::~Girokonto(void) +// ino.end +// ino.method.~Girokonto.409.body +{ +} +// ino.end + +// ino.method.pruefeUeberziehungsKredit.385.definition +bool systemModel::AnalyseModell::Girokonto::pruefeUeberziehungsKredit(float betrag) +// ino.end +// ino.method.pruefeUeberziehungsKredit.385.body +{ + if (((getKontostand()-betrag)>-ueberziehungsKredit)|| (getKontostand()-betrag)>0) + { + return true; + } + else + { + return false; + } +} +// ino.end + + diff --git a/Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp b/Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp new file mode 100644 index 0000000..d88b0fa --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/girokonto.hpp @@ -0,0 +1,72 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:15 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/girokonto.hpp + * + */ + + +// ino.module.girokonto.418.ifndef +#ifndef _GIROKONTO_HPP_418 +#define _GIROKONTO_HPP_418 +// ino.end + +// ino.module.girokonto.418.decIncludes +#include "konto.hpp" +// ino.end + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Girokonto.381.declaration +class Girokonto: public Konto +// ino.end +// ino.class.Girokonto.381.body +{ + // ino.attribute.ueberziehungsKredit.383.declaration + private: + float ueberziehungsKredit; + // ino.end + + // ino.method.Girokonto.412.declaration + public: + Girokonto(void); + // ino.end + + // ino.method.~Girokonto.409.declaration + public: + virtual ~Girokonto(void); + // ino.end + + // ino.method.pruefeUeberziehungsKredit.385.declaration + public: + virtual bool pruefeUeberziehungsKredit(float betrag); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.girokonto.418.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/code/bankding/konto.cpp b/Bachelor/Softwaretechnik1/code/bankding/konto.cpp new file mode 100644 index 0000000..970c6f9 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/konto.cpp @@ -0,0 +1,64 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:15 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/konto.cpp + * + */ + + +// ino.module.konto.417.includes +#include "konto.hpp" +// ino.end + + +// ino.method.getKontostand.421.definition +float systemModel::AnalyseModell::Konto::getKontostand() +// ino.end +// ino.method.getKontostand.421.body +{ + return Kontostand; +} +// ino.end + +// ino.method.~Konto.403.definition +systemModel::AnalyseModell::Konto::~Konto(void) +// ino.end +// ino.method.~Konto.403.body +{ +} +// ino.end + +// ino.method.Konto.400.definition +systemModel::AnalyseModell::Konto::Konto(void) +// ino.end +// ino.method.Konto.400.body +{ +} +// ino.end + +// ino.method.geldEinzahlen.377.definition +void systemModel::AnalyseModell::Konto::geldEinzahlen(float betrag) +// ino.end +// ino.method.geldEinzahlen.377.body +{ + Kontostand=Kontostand+betrag; +} +// ino.end + +// ino.method.geldAbheben.379.definition +void systemModel::AnalyseModell::Konto::geldAbheben(float betrag) +// ino.end +// ino.method.geldAbheben.379.body +{ + Kontostand=Kontostand-betrag; +} +// ino.end + + diff --git a/Bachelor/Softwaretechnik1/code/bankding/konto.hpp b/Bachelor/Softwaretechnik1/code/bankding/konto.hpp new file mode 100644 index 0000000..905e56c --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/konto.hpp @@ -0,0 +1,84 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:14 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/konto.hpp + * + */ + + +// ino.module.konto.416.ifndef +#ifndef _KONTO_HPP_416 +#define _KONTO_HPP_416 +// ino.end + + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Konto.371.declaration +class Konto +// ino.end +// ino.class.Konto.371.body +{ + // ino.attribute.Kontonummer.373.declaration + private: + float Kontonummer; + // ino.end + + // ino.attribute.Kontostand.375.declaration + private: + float Kontostand; + // ino.end + + // ino.method.getKontostand.421.declaration + public: + virtual float getKontostand(); + // ino.end + + // ino.method.~Konto.403.declaration + public: + virtual ~Konto(void); + // ino.end + + // ino.method.Konto.400.declaration + public: + Konto(void); + // ino.end + + // ino.method.geldEinzahlen.377.declaration + public: + virtual void geldEinzahlen(float betrag); + // ino.end + + // ino.method.geldAbheben.379.declaration + public: + virtual void geldAbheben(float betrag); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.konto.416.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/code/bankding/main.cpp b/Bachelor/Softwaretechnik1/code/bankding/main.cpp new file mode 100644 index 0000000..d2dd4b9 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/bankding/main.cpp @@ -0,0 +1,43 @@ +#include +#include "konto.hpp" +#include "girokonto.hpp" + +using std::cin; +using std::cout; +using std::endl; + +using systemModel::AnalyseModell::Konto; +using systemModel::AnalyseModell::Girokonto; + +int main() +{ + Girokonto geldspeicher; + float betrag; + int input; + do { + cout << "1: Geld einzahlen"<> input; + switch (input) { + case 1:{ + cout << "Betrag einzahlen: "; + cin >> betrag; + geldspeicher.geldEinzahlen(betrag); + break; + } + case 2: { + cout << "Betrag abheben: "; + cin >> betrag; + if(true == geldspeicher.pruefeUeberziehungsKredit(betrag)) + geldspeicher.geldAbheben(betrag); + break; + } + case 3: cout << "Kontostand: " << geldspeicher.getKontostand() << endl; + break; + default: break; + } + }while(input!=0); +return 0; +} diff --git a/Bachelor/Softwaretechnik1/code/dauerauftrag.cpp b/Bachelor/Softwaretechnik1/code/dauerauftrag.cpp new file mode 100644 index 0000000..cc6a6a3 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/dauerauftrag.cpp @@ -0,0 +1,63 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 19.05.2005 15:30:24 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/dauerauftrag.cpp + * + */ + + +// ino.module.dauerauftrag.624.includes +#include "dauerauftrag.hpp" +// ino.end + + +// ino.method.getZielGirokonto.619.definition +Girokonto systemModel::AnalyseModell::Dauerauftrag::getZielGirokonto(void) const +// ino.end +// ino.method.getZielGirokonto.619.body +{ return ZielGirokonto; } +// ino.end + +// ino.method.getBetrag.616.definition +float systemModel::AnalyseModell::Dauerauftrag::getBetrag(void) const +// ino.end +// ino.method.getBetrag.616.body +{ return Betrag; } +// ino.end + +// ino.method.getZeitabstand.613.definition +int systemModel::AnalyseModell::Dauerauftrag::getZeitabstand(void) const +// ino.end +// ino.method.getZeitabstand.613.body +{ return Zeitabstand; } +// ino.end + +// ino.method.setZielGirokonto.610.definition +void systemModel::AnalyseModell::Dauerauftrag::setZielGirokonto(Girokonto ZielGirokonto) +// ino.end +// ino.method.setZielGirokonto.610.body +{ this->ZielGirokonto = ZielGirokonto; } +// ino.end + +// ino.method.setBetrag.607.definition +void systemModel::AnalyseModell::Dauerauftrag::setBetrag(float Betrag) +// ino.end +// ino.method.setBetrag.607.body +{ this->Betrag = Betrag; } +// ino.end + +// ino.method.setZeitabstand.604.definition +void systemModel::AnalyseModell::Dauerauftrag::setZeitabstand(int Zeitabstand) +// ino.end +// ino.method.setZeitabstand.604.body +{ this->Zeitabstand = Zeitabstand; } +// ino.end + + diff --git a/Bachelor/Softwaretechnik1/code/dauerauftrag.hpp b/Bachelor/Softwaretechnik1/code/dauerauftrag.hpp new file mode 100644 index 0000000..bf7fbcc --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/dauerauftrag.hpp @@ -0,0 +1,94 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 19.05.2005 15:30:22 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/dauerauftrag.hpp + * + */ + + +// ino.module.dauerauftrag.623.ifndef +#ifndef _DAUERAUFTRAG_HPP_623 +#define _DAUERAUFTRAG_HPP_623 +// ino.end + + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Dauerauftrag.587.declaration +class Dauerauftrag +// ino.end +// ino.class.Dauerauftrag.587.body +{ + // ino.attribute.Zeitabstand.592.declaration + private: + int Zeitabstand; + // ino.end + + // ino.attribute.Betrag.590.declaration + private: + float Betrag; + // ino.end + + // ino.attribute.ZielGirokonto.596.declaration + private: + Girokonto ZielGirokonto; + // ino.end + + // ino.method.getZielGirokonto.619.declaration + public: + virtual Girokonto getZielGirokonto(void) const; + // ino.end + + // ino.method.getBetrag.616.declaration + public: + virtual float getBetrag(void) const; + // ino.end + + // ino.method.getZeitabstand.613.declaration + public: + virtual int getZeitabstand(void) const; + // ino.end + + // ino.method.setZielGirokonto.610.declaration + public: + virtual void setZielGirokonto(Girokonto ZielGirokonto); + // ino.end + + // ino.method.setBetrag.607.declaration + public: + virtual void setBetrag(float Betrag); + // ino.end + + // ino.method.setZeitabstand.604.declaration + public: + virtual void setZeitabstand(int Zeitabstand); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.dauerauftrag.623.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/code/girokonto.cpp b/Bachelor/Softwaretechnik1/code/girokonto.cpp new file mode 100644 index 0000000..cfbe90d --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/girokonto.cpp @@ -0,0 +1,78 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:16 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/girokonto.cpp + * + */ + + +// ino.module.girokonto.419.includes +#include "girokonto.hpp" +// ino.end + + +// ino.method.ueberweisen.462.definition +void systemModel::AnalyseModell::Girokonto::ueberweisen(float betrag, Girokonto ZielGkto) +// ino.end +// ino.method.ueberweisen.462.body +{ +} +// ino.end +// ino.method.dauerauftragAnlegen.465.definition +Dauerauftrag systemModel::AnalyseModell::Girokonto::dauerauftragAnlegen() +// ino.end +// ino.method.dauerauftragAnlegen.465.body +{ +} +// ino.end +// ino.method.dauerauftragLoeschen.467.definition +void systemModel::AnalyseModell::Girokonto::dauerauftragLoeschen(Dauerauftrag dauerAuftrag) +// ino.end +// ino.method.dauerauftragLoeschen.467.body +{ +} +// ino.end + + + +// ino.method.Girokonto.412.definition +systemModel::AnalyseModell::Girokonto::Girokonto(void) +// ino.end +// ino.method.Girokonto.412.body +{ + ueberziehungsKredit=1000; +} +// ino.end + +// ino.method.~Girokonto.409.definition +systemModel::AnalyseModell::Girokonto::~Girokonto(void) +// ino.end +// ino.method.~Girokonto.409.body +{ +} +// ino.end + +// ino.method.pruefeUeberziehungsKredit.385.definition +bool systemModel::AnalyseModell::Girokonto::pruefeUeberziehungsKredit(float betrag) +// ino.end +// ino.method.pruefeUeberziehungsKredit.385.body +{ + if (((getKontostand()-betrag)>-ueberziehungsKredit)|| (getKontostand()-betrag)>0) + { + return true; + } + else + { + return false; + } +} +// ino.end + + diff --git a/Bachelor/Softwaretechnik1/code/girokonto.hpp b/Bachelor/Softwaretechnik1/code/girokonto.hpp new file mode 100644 index 0000000..f487cd3 --- /dev/null +++ b/Bachelor/Softwaretechnik1/code/girokonto.hpp @@ -0,0 +1,87 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 05.05.2005 14:01:15 + * Repository : swtd29 + * Modell : swt + * Benutzer : swtd29 + * File : /users/swtd29/code/girokonto.hpp + * + */ + + +// ino.module.girokonto.418.ifndef +#ifndef _GIROKONTO_HPP_418 +#define _GIROKONTO_HPP_418 +// ino.end + +// ino.module.girokonto.418.decIncludes +#include "konto.hpp" +// ino.end + +namespace systemModel { + namespace AnalyseModell { + + +// ino.class.Girokonto.381.declaration +class Girokonto: public Konto +// ino.end +// ino.class.Girokonto.381.body +{ + // ino.attribute.ueberziehungsKredit.383.declaration + private: + float ueberziehungsKredit; + // ino.end + + // ino.method.ueberweisen.462.declaration + public: + virtual void ueberweisen(float betrag, Girokonto ZielGkto); + // ino.end + // ino.method.dauerauftragAnlegen.465.declaration + public: + virtual Dauerauftrag dauerauftragAnlegen(); + // ino.end + // ino.method.dauerauftragLoeschen.467.declaration + public: + virtual void dauerauftragLoeschen(Dauerauftrag dauerAuftrag); + // ino.end + + + + // ino.method.Girokonto.412.declaration + public: + Girokonto(void); + // ino.end + + // ino.method.~Girokonto.409.declaration + public: + virtual ~Girokonto(void); + // ino.end + + // ino.method.pruefeUeberziehungsKredit.385.declaration + public: + virtual bool pruefeUeberziehungsKredit(float betrag); + // ino.end + +}; +// ino.end + + + + + + }; // namespace AnalyseModell +}; // namespace systemModel + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace systemModel::AnalyseModell; +#endif + +// ino.module.girokonto.418.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/skriptSWTV2.pdf b/Bachelor/Softwaretechnik1/skriptSWTV2.pdf new file mode 100644 index 0000000..9186b15 Binary files /dev/null and b/Bachelor/Softwaretechnik1/skriptSWTV2.pdf differ diff --git a/Bachelor/Softwaretechnik1/swtBank/.cdtbuild b/Bachelor/Softwaretechnik1/swtBank/.cdtbuild new file mode 100644 index 0000000..35e44a8 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/.cdtbuild @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Bachelor/Softwaretechnik1/swtBank/.cdtproject b/Bachelor/Softwaretechnik1/swtBank/.cdtproject new file mode 100644 index 0000000..82c36e0 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/.cdtproject @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/Bachelor/Softwaretechnik1/swtBank/.project b/Bachelor/Softwaretechnik1/swtBank/.project new file mode 100644 index 0000000..96a2795 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/.project @@ -0,0 +1,19 @@ + + + swtBank + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.core.ccnature + + diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d b/Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d new file mode 100644 index 0000000..319955e --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/girokonto.d @@ -0,0 +1,10 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +girokonto.d ./girokonto.o: ../girokonto.cpp ../girokonto.hpp ../konto.hpp + +../girokonto.hpp: + +../konto.hpp: + diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/konto.d b/Bachelor/Softwaretechnik1/swtBank/Debug/konto.d new file mode 100644 index 0000000..75c00a3 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/konto.d @@ -0,0 +1,8 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +konto.d ./konto.o: ../konto.cpp ../konto.hpp + +../konto.hpp: + diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/main.d b/Bachelor/Softwaretechnik1/swtBank/Debug/main.d new file mode 100644 index 0000000..4351548 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/main.d @@ -0,0 +1,10 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +main.d ./main.o: ../main.cpp ../girokonto.hpp ../konto.hpp + +../girokonto.hpp: + +../konto.hpp: + diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/makefile b/Bachelor/Softwaretechnik1/swtBank/Debug/makefile new file mode 100644 index 0000000..7fd327b --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/makefile @@ -0,0 +1,30 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +ROOT := .. + +-include $(ROOT)/makefile.init + +RM := rm -rf + +# All of the sources participating in the build are defined here +-include sources.mk +-include $(SUBDIRS:%=%/subdir.mk) +-include objects.mk +-include $(DEPS) +-include $(ROOT)/makefile.defs + +all: swtBank + +swtBank: $(OBJS) + @echo 'Building target: $@' + g++ -o $@ $(OBJS) $(USER_OBJS) $(LIBS) + @echo 'Finished building: $@' + +clean: + -$(RM) $(OBJS) $(DEPS) swtBank + +.PHONY: all clean dependents + +-include $(ROOT)/makefile.targets diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk b/Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk new file mode 100644 index 0000000..59a3b5b --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/objects.mk @@ -0,0 +1,13 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +LIBS := +USER_OBJS := + + +OBJS := \ + $(C_SRCS:$(ROOT)/%.c=%.o) $(C_UPPER_SRCS:$(ROOT)/%.C=%.o) $(CC_SRCS:$(ROOT)/%.cc=%.o) $(CXX_SRCS:$(ROOT)/%.cxx=%.o) $(CPP_SRCS:$(ROOT)/%.cpp=%.o) $(S_SRCS:$(ROOT)/%.s=%.o) $(S_UPPER_SRCS:$(ROOT)/%.S=%.o) + +DEPS := \ + $(C_SRCS:$(ROOT)/%.c=%.d) $(C_UPPER_SRCS:$(ROOT)/%.C=%.d) $(CC_SRCS:$(ROOT)/%.cc=%.d) $(CXX_SRCS:$(ROOT)/%.cxx=%.d) $(CPP_SRCS:$(ROOT)/%.cpp=%.d) $(S_SRCS:$(ROOT)/%.s=%.d) $(S_UPPER_SRCS:$(ROOT)/%.S=%.d) \ No newline at end of file diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk b/Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk new file mode 100644 index 0000000..357bfc1 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/sources.mk @@ -0,0 +1,16 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +C_SRCS := +C_UPPER_SRCS := +CC_SRCS := +CXX_SRCS := +CPP_SRCS := +S_SRCS := +S_UPPER_SRCS := + +# Every subdirectory with source files must be described here +SUBDIRS := \ +. \ + diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk b/Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk new file mode 100644 index 0000000..f8084c0 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/Debug/subdir.mk @@ -0,0 +1,46 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +S_UPPER_SRCS += \ +${addprefix $(ROOT)/, \ +} + +CPP_SRCS += \ +${addprefix $(ROOT)/, \ +girokonto.cpp \ +konto.cpp \ +main.cpp \ +} + +CC_SRCS += \ +${addprefix $(ROOT)/, \ +} + +C_SRCS += \ +${addprefix $(ROOT)/, \ +} + +C_UPPER_SRCS += \ +${addprefix $(ROOT)/, \ +} + +CXX_SRCS += \ +${addprefix $(ROOT)/, \ +} + +S_SRCS += \ +${addprefix $(ROOT)/, \ +} + +# Each subdirectory must supply rules for building sources it contributes +%.o: $(ROOT)/%.cpp + @echo 'Building file: $<' + @echo g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< + @g++ -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \ + echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \ + g++ -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d) + @echo 'Finished building: $<' + @echo ' ' + + diff --git a/Bachelor/Softwaretechnik1/swtBank/Debug/swtBank b/Bachelor/Softwaretechnik1/swtBank/Debug/swtBank new file mode 100644 index 0000000..6f66f0c Binary files /dev/null and b/Bachelor/Softwaretechnik1/swtBank/Debug/swtBank differ diff --git a/Bachelor/Softwaretechnik1/swtBank/girokonto.cpp b/Bachelor/Softwaretechnik1/swtBank/girokonto.cpp new file mode 100644 index 0000000..2c77bc8 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/girokonto.cpp @@ -0,0 +1,53 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 01.05.2005 14:31:27 + * Repository : swtd29 + * Modell : swtd29 + * Benutzer : ADMIN + * File : /tmp/src/girokonto.cpp + * + */ + + +// ino.module.girokonto.513.includes +#include "girokonto.hpp" +// ino.end + + +// ino.method.Girokonto.505.definition +Girokonto::Girokonto() +// ino.end +// ino.method.Girokonto.505.body +{ + ueberziehungsKredit=1000; +} +// ino.end + +// ino.method.~Girokonto.502.definition +Girokonto::~Girokonto() +// ino.end +// ino.method.~Girokonto.502.body +{ +} +// ino.end + +// ino.method.pruefeUeberziehungsKredit.478.definition +bool Girokonto::pruefeUeberziehungsKredit(float betrag) +// ino.end +// ino.method.pruefeUeberziehungsKredit.478.body +{ + if ((getKontostand()>betrag) || ((getKontostand()+ueberziehungsKredit)>betrag)) + { + //geldAbheben(betrag); + return true; + } + else + return false; +} +// ino.end + + diff --git a/Bachelor/Softwaretechnik1/swtBank/girokonto.hpp b/Bachelor/Softwaretechnik1/swtBank/girokonto.hpp new file mode 100644 index 0000000..a0d4388 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/girokonto.hpp @@ -0,0 +1,70 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 01.05.2005 14:31:27 + * Repository : swtd29 + * Modell : swtd29 + * Benutzer : ADMIN + * File : /tmp/src/girokonto.hpp + * + */ + + +// ino.module.girokonto.511.ifndef +#ifndef _GIROKONTO_HPP_511 +#define _GIROKONTO_HPP_511 +// ino.end + +// ino.module.girokonto.511.decIncludes +#include "konto.hpp" +// ino.end + +namespace analysis_system { + + +// ino.class.Girokonto.474.declaration +class Girokonto: public Konto +// ino.end +// ino.class.Girokonto.474.body +{ + // ino.attribute.ueberziehungsKredit.476.declaration + private: + float ueberziehungsKredit; + // ino.end + + // ino.method.Girokonto.505.declaration + public: + Girokonto(void); + // ino.end + + // ino.method.~Girokonto.502.declaration + public: + virtual ~Girokonto(void); + // ino.end + + // ino.method.pruefeUeberziehungsKredit.478.declaration + public: + virtual bool pruefeUeberziehungsKredit(float betrag); + // ino.end + +}; +// ino.end + + + + + +}; // namespace analysis system + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace analysis_system; +#endif + +// ino.module.girokonto.511.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/swtBank/konto.cpp b/Bachelor/Softwaretechnik1/swtBank/konto.cpp new file mode 100644 index 0000000..4864c9d --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/konto.cpp @@ -0,0 +1,60 @@ +/**********************************************************************************/ +/* Definitionsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 01.05.2005 14:31:27 + * Repository : swtd29 + * Modell : swtd29 + * Benutzer : ADMIN + * File : /tmp/src/konto.cpp + * + */ + + +// ino.module.konto.512.includes +#include "konto.hpp" +// ino.end + + +// ino.method.Konto.499.definition +Konto::Konto(void) +// ino.end +// ino.method.Konto.499.body +{ + kontostand=0; + kontonummer=12345678; +} +// ino.end + +// ino.method.~Konto.496.definition +Konto::~Konto(void) +// ino.end +// ino.method.~Konto.496.body +{ +} +// ino.end + +// ino.method.geldEinzahlen.470.definition +void Konto::geldEinzahlen(float betrag) +// ino.end +// ino.method.geldEinzahlen.470.body +{ + kontostand+=betrag; +} +// ino.end + +// ino.method.geldAbheben.472.definition +void Konto::geldAbheben(float betrag) +// ino.end +// ino.method.geldAbheben.472.body +{ + kontostand-=betrag; +} +// ino.end + +float Konto::getKontostand() +{ + return kontostand; +} diff --git a/Bachelor/Softwaretechnik1/swtBank/konto.hpp b/Bachelor/Softwaretechnik1/swtBank/konto.hpp new file mode 100644 index 0000000..034a797 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/konto.hpp @@ -0,0 +1,79 @@ +/**********************************************************************************/ +/* Deklarationsmodul */ +/**********************************************************************************/ +/* + * generiert mit Innovator Version 8.1.04 + * + * erstellt am: 01.05.2005 14:31:27 + * Repository : swtd29 + * Modell : swtd29 + * Benutzer : ADMIN + * File : /tmp/src/konto.hpp + * + */ + + +// ino.module.konto.510.ifndef +#ifndef _KONTO_HPP_510 +#define _KONTO_HPP_510 +// ino.end + + +namespace analysis_system { + + +// ino.class.Konto.464.declaration +class Konto +// ino.end +// ino.class.Konto.464.body +{ + // ino.attribute.Kontostand.466.declaration + private: + float kontostand; + // ino.end + + // ino.attribute.Kontonummer.468.declaration + private: + float kontonummer; + // ino.end + + // ino.method.Konto.499.declaration + public: + Konto(void); + // ino.end + + // ino.method.~Konto.496.declaration + public: + virtual ~Konto(void); + // ino.end + + // ino.method.geldEinzahlen.470.declaration + public: + virtual void geldEinzahlen(float betrag); + // ino.end + + // ino.method.geldAbheben.472.declaration + public: + virtual void geldAbheben(float betrag); + // ino.end + + public: + virtual float getKontostand(); +}; +// ino.end + + + + + +}; // namespace analysis system + + +#if !defined(NO_IMPLICIT_NAMESPACE_USE) +using namespace analysis_system; +#endif + +// ino.module.konto.510.endif +#endif +// ino.end + diff --git a/Bachelor/Softwaretechnik1/swtBank/main.cpp b/Bachelor/Softwaretechnik1/swtBank/main.cpp new file mode 100644 index 0000000..ec2dff1 --- /dev/null +++ b/Bachelor/Softwaretechnik1/swtBank/main.cpp @@ -0,0 +1,53 @@ +#include +#include "girokonto.hpp" + +using std::cout; +using std::cin; +using std::endl; + +int main() +{ + Girokonto giro; + int select; + float betrag; + + do { + cout << "GIROKONTO" << endl; + cout << "1: Geld einzahlen" << endl; + cout << "2: Geld abheben" << endl; + cout << "3: Kontostand anzeigen" << endl; + cout << endl << "0: Ende" << endl; + cout << endl << "Eingabe: "; + cin >> select; + switch (select) + { + case 1: { + cout << endl << "Betrag: "; + cin >> betrag; + giro.geldEinzahlen(betrag); + break; + } + case 2: { + cout << endl << "Betrag: "; + cin >> betrag; + if (true == giro.pruefeUeberziehungsKredit(betrag)) + { + giro.geldAbheben(betrag); + cout << endl << "Passt scho..." << endl; + } + else + { + cout << endl << "nix gibts, leider pleite" << endl; + } + break; + } + case 3: { + cout << endl << "Kontostand: "<