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 --- .../Softwaretechnik/code/bankding/girokonto.cpp | 54 +++++++++++++ .../Softwaretechnik/code/bankding/girokonto.hpp | 72 +++++++++++++++++ Bachelor/Softwaretechnik/code/bankding/konto.cpp | 64 +++++++++++++++ Bachelor/Softwaretechnik/code/bankding/konto.hpp | 84 +++++++++++++++++++ Bachelor/Softwaretechnik/code/bankding/main.cpp | 43 ++++++++++ Bachelor/Softwaretechnik/code/dauerauftrag.cpp | 63 +++++++++++++++ Bachelor/Softwaretechnik/code/dauerauftrag.hpp | 94 ++++++++++++++++++++++ Bachelor/Softwaretechnik/code/girokonto.cpp | 78 ++++++++++++++++++ Bachelor/Softwaretechnik/code/girokonto.hpp | 87 ++++++++++++++++++++ 9 files changed, 639 insertions(+) create mode 100644 Bachelor/Softwaretechnik/code/bankding/girokonto.cpp create mode 100644 Bachelor/Softwaretechnik/code/bankding/girokonto.hpp create mode 100644 Bachelor/Softwaretechnik/code/bankding/konto.cpp create mode 100644 Bachelor/Softwaretechnik/code/bankding/konto.hpp create mode 100644 Bachelor/Softwaretechnik/code/bankding/main.cpp create mode 100644 Bachelor/Softwaretechnik/code/dauerauftrag.cpp create mode 100644 Bachelor/Softwaretechnik/code/dauerauftrag.hpp create mode 100644 Bachelor/Softwaretechnik/code/girokonto.cpp create mode 100644 Bachelor/Softwaretechnik/code/girokonto.hpp (limited to 'Bachelor/Softwaretechnik/code') diff --git a/Bachelor/Softwaretechnik/code/bankding/girokonto.cpp b/Bachelor/Softwaretechnik/code/bankding/girokonto.cpp new file mode 100644 index 0000000..389b90f --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/bankding/girokonto.hpp b/Bachelor/Softwaretechnik/code/bankding/girokonto.hpp new file mode 100644 index 0000000..5463f92 --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/bankding/konto.cpp b/Bachelor/Softwaretechnik/code/bankding/konto.cpp new file mode 100644 index 0000000..970c6f9 --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/bankding/konto.hpp b/Bachelor/Softwaretechnik/code/bankding/konto.hpp new file mode 100644 index 0000000..cc07982 --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/bankding/main.cpp b/Bachelor/Softwaretechnik/code/bankding/main.cpp new file mode 100644 index 0000000..d2dd4b9 --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/dauerauftrag.cpp b/Bachelor/Softwaretechnik/code/dauerauftrag.cpp new file mode 100644 index 0000000..cc6a6a3 --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/dauerauftrag.hpp b/Bachelor/Softwaretechnik/code/dauerauftrag.hpp new file mode 100644 index 0000000..c27f5ef --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/girokonto.cpp b/Bachelor/Softwaretechnik/code/girokonto.cpp new file mode 100644 index 0000000..cfbe90d --- /dev/null +++ b/Bachelor/Softwaretechnik/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/Softwaretechnik/code/girokonto.hpp b/Bachelor/Softwaretechnik/code/girokonto.hpp new file mode 100644 index 0000000..02fbb16 --- /dev/null +++ b/Bachelor/Softwaretechnik/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 + -- cgit v1.2.3