summary refs log tree commit diff stats
path: root/java/output/BankAccountExample.typ
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@termux-alpine>2024-01-27 11:33:43 +0000
committerSudipto Mallick <smlckz@termux-alpine>2024-01-27 11:34:11 +0000
commitcd6a9243c056710794549a1ab5d51fbdd082ce2e (patch)
treef3f4df42bcfa96b9d6ef48da2b33be148adfdd2b /java/output/BankAccountExample.typ
parent1db2841d10c6920eba89f1e55eb3c90aa770ad07 (diff)
downloadzadania-cd6a9243c056710794549a1ab5d51fbdd082ce2e.tar.gz
Complete Java assignments #7-13
Diffstat (limited to 'java/output/BankAccountExample.typ')
-rw-r--r--java/output/BankAccountExample.typ124
1 files changed, 124 insertions, 0 deletions
diff --git a/java/output/BankAccountExample.typ b/java/output/BankAccountExample.typ
new file mode 100644
index 0000000..779f5ff
--- /dev/null
+++ b/java/output/BankAccountExample.typ
@@ -0,0 +1,124 @@
+#import "/template.typ": highlight-output
+#highlight-output[```
+$ java BankAccountExample
+Menu-driven program for operating bank accounts:
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 1
+Enter details of bank account:
+  Name: Lee Heoksoo
+  Address: Sindang-dong, Seoul
+  Account No.: 120045387091
+  Balance: 71623500
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 2
+Enter account number: 120045387091
+Customer details: 
+  Name: Lee Heoksoo
+  Address: Sindang-dong, Seoul
+  Account Number: 120045387091
+  Balance: 71623500.00
+
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 1
+Enter details of bank account:
+  Name: Axel Schauer
+  Address: Eidelstedt, Hamburg
+  Account No.: 582978
+  Balance: 36400
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 4
+Enter account number: 42000
+Could not find a bank account with the given account number.
+Try again.
+
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 4
+Enter account number: 4200
+Could not find a bank account with the given account number.
+Try again.
+
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 3
+Enter account number: 12000
+Could not find a bank account with the given account number.
+Try again.
+
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 5
+Enter account number: 582978
+Are you sure about closing your account (y/n): y
+Account closing successful.
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 2
+Enter account number: 582978
+Could not find a bank account with the given account number.
+Try again.
+
+Menu:
+ 1. Create bank account
+ 2. Display bank account details
+ 3. Deposit money
+ 4. Withdraw money
+ 5. Close bank account
+ 6. Exit
+
+Enter your choice: 6
+Bye.
+```]
+