From b4890bdccb27f73861debd152bd50f28e53a37be Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Wed, 27 Nov 2024 10:51:48 +0100 Subject: [PATCH] Bank app sesjon1 --- Emne 3/BankAppMarie/BankAppMarie.sln | 16 ++++++++++++++++ Emne 3/BankAppMarie/BankAppMarie/Account.cs | 11 +++++++++++ Emne 3/BankAppMarie/BankAppMarie/Bank.cs | 7 +++++++ .../BankAppMarie/BankAppMarie.csproj | 10 ++++++++++ Emne 3/BankAppMarie/BankAppMarie/Bill.cs | 11 +++++++++++ Emne 3/BankAppMarie/BankAppMarie/Customer.cs | 11 +++++++++++ Emne 3/BankAppMarie/BankAppMarie/Program.cs | 14 ++++++++++++++ 7 files changed, 80 insertions(+) create mode 100644 Emne 3/BankAppMarie/BankAppMarie.sln create mode 100644 Emne 3/BankAppMarie/BankAppMarie/Account.cs create mode 100644 Emne 3/BankAppMarie/BankAppMarie/Bank.cs create mode 100644 Emne 3/BankAppMarie/BankAppMarie/BankAppMarie.csproj create mode 100644 Emne 3/BankAppMarie/BankAppMarie/Bill.cs create mode 100644 Emne 3/BankAppMarie/BankAppMarie/Customer.cs create mode 100644 Emne 3/BankAppMarie/BankAppMarie/Program.cs diff --git a/Emne 3/BankAppMarie/BankAppMarie.sln b/Emne 3/BankAppMarie/BankAppMarie.sln new file mode 100644 index 0000000..a119187 --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankAppMarie", "BankAppMarie\BankAppMarie.csproj", "{BDDFEA1E-DAD7-4658-89FE-38EB71243E37}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BDDFEA1E-DAD7-4658-89FE-38EB71243E37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BDDFEA1E-DAD7-4658-89FE-38EB71243E37}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BDDFEA1E-DAD7-4658-89FE-38EB71243E37}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BDDFEA1E-DAD7-4658-89FE-38EB71243E37}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Emne 3/BankAppMarie/BankAppMarie/Account.cs b/Emne 3/BankAppMarie/BankAppMarie/Account.cs new file mode 100644 index 0000000..39c7975 --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie/Account.cs @@ -0,0 +1,11 @@ +namespace BankAppMarie +{ + internal class Account + { + int _balance; + string _accountName; + bool _savingsAccount; + string _accountNumber; + string[] _accountTransactions; + } +} \ No newline at end of file diff --git a/Emne 3/BankAppMarie/BankAppMarie/Bank.cs b/Emne 3/BankAppMarie/BankAppMarie/Bank.cs new file mode 100644 index 0000000..7ee5cf2 --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie/Bank.cs @@ -0,0 +1,7 @@ +namespace BankAppMarie +{ + public class Bank + { + + } +} \ No newline at end of file diff --git a/Emne 3/BankAppMarie/BankAppMarie/BankAppMarie.csproj b/Emne 3/BankAppMarie/BankAppMarie/BankAppMarie.csproj new file mode 100644 index 0000000..2f4fc77 --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie/BankAppMarie.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Emne 3/BankAppMarie/BankAppMarie/Bill.cs b/Emne 3/BankAppMarie/BankAppMarie/Bill.cs new file mode 100644 index 0000000..10e55ee --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie/Bill.cs @@ -0,0 +1,11 @@ +namespace BankAppMarie +{ + public class Bill + { + int _amount; + string _accountNumber; + string _sender; + string _kidNr; + DateTime _payDate; + } +} \ No newline at end of file diff --git a/Emne 3/BankAppMarie/BankAppMarie/Customer.cs b/Emne 3/BankAppMarie/BankAppMarie/Customer.cs new file mode 100644 index 0000000..aa3f25e --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie/Customer.cs @@ -0,0 +1,11 @@ +namespace BankAppMarie +{ + public class Customer + { + string _CustomerName; + string _socialSecurityNumber; + Account _savingsAccount; + Account _currentAccount; + + } +} \ No newline at end of file diff --git a/Emne 3/BankAppMarie/BankAppMarie/Program.cs b/Emne 3/BankAppMarie/BankAppMarie/Program.cs new file mode 100644 index 0000000..e4c6f65 --- /dev/null +++ b/Emne 3/BankAppMarie/BankAppMarie/Program.cs @@ -0,0 +1,14 @@ +// Logge inn +// Sec +// Overføre Penger - egne konto +// Betale regninger +// Overføre mellom to konto +// Sjekke Saldo +// opprette sparekonto +// Sette inn penger + +// Objekter +// Konto +// Kunde +// Regning +