From ef3a48508e8f70afdfaeb2018ee7dbb4e36a3312 Mon Sep 17 00:00:00 2001 From: Hammy Date: Thu, 24 Dec 2020 00:50:17 +0000 Subject: [PATCH] Simplifying Bank Assessment --- .../src/bank/assessment/BasicAccount.java | 14 ---- .../src/bank/assessment/PremiumAccount.java | 26 ------- Personal/src/tdd/hello/world/pom.xml | 75 ------------------- 3 files changed, 115 deletions(-) delete mode 100644 Personal/src/bank/assessment/BasicAccount.java delete mode 100644 Personal/src/bank/assessment/PremiumAccount.java delete mode 100644 Personal/src/tdd/hello/world/pom.xml diff --git a/Personal/src/bank/assessment/BasicAccount.java b/Personal/src/bank/assessment/BasicAccount.java deleted file mode 100644 index c43f6bb..0000000 --- a/Personal/src/bank/assessment/BasicAccount.java +++ /dev/null @@ -1,14 +0,0 @@ -package bank.assessment; - -public class BasicAccount extends BankAccount { - - public BasicAccount() { } - - public BasicAccount(String username, String password, String accountNumber, String sortCode) { - super(username, password, accountNumber, sortCode); - } - - public BasicAccount(String username, String password, String accountNumber, String sortCode, double overdraftLimit) { - super(username, password, accountNumber, sortCode, overdraftLimit); - } -} diff --git a/Personal/src/bank/assessment/PremiumAccount.java b/Personal/src/bank/assessment/PremiumAccount.java deleted file mode 100644 index a297be1..0000000 --- a/Personal/src/bank/assessment/PremiumAccount.java +++ /dev/null @@ -1,26 +0,0 @@ -package bank.assessment; - -public class PremiumAccount extends BasicAccount { - - public PremiumAccount(String username, String password, String accountNumber, String sortCode, double overdraftLimit) { - super(username, password, accountNumber, sortCode, overdraftLimit); - } - - @Override - public boolean withdraw() { - System.out.println("How Much Money Do You Want To Withdraw?"); - double amount = Double.parseDouble(Console.INPUT.nextLine()); - - if (amount <= (getBalance() + getOverdraftLimit())) { - setBalance(getBalance() - amount); - - System.out.println("Withdraw Successful!"); - displayBalance(); - - return true; - } else { - System.out.println("Insufficient Funds Available to Withdraw! Try Again!"); - return false; - } - } -} diff --git a/Personal/src/tdd/hello/world/pom.xml b/Personal/src/tdd/hello/world/pom.xml deleted file mode 100644 index f01809f..0000000 --- a/Personal/src/tdd/hello/world/pom.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - 4.0.0 - - HelloWorld - HelloWorld - 1.0-SNAPSHOT - - Hello World - - http://www.example.com - - - UTF-8 - 13.0.2 - 13.0.2 - - - - - junit - junit - 4.11 - test - - - - - - - - - maven-clean-plugin - 3.1.0 - - - - maven-resources-plugin - 3.0.2 - - - maven-compiler-plugin - 3.8.0 - - - maven-surefire-plugin - 2.22.1 - - - maven-jar-plugin - 3.0.2 - - - maven-install-plugin - 2.5.2 - - - maven-deploy-plugin - 2.8.2 - - - - maven-site-plugin - 3.7.1 - - - maven-project-info-reports-plugin - 3.0.0 - - - - -