Commit 5bf05289 authored by austin.blanke's avatar austin.blanke

Final Commit

parent e45581e2
public class BankAccount {
int accountNumber;
String Name;
double balance;
double limit;
public BankAccount(){
accountNumber = 0;
Name = "noName";
balance = 0;
limit = 0;
}
public void deposite(int inputAmount){
balance = balance + inputAmount;
}
public void withdrawal(int amountTaken){
if(balance + limit > 0 || balance + limit >= amountTaken){
balance = balance - amountTaken;
}
}
public void bankFees(){
balance = balance * .95;
}
public void display(){
System.out.println("Account Number: " + accountNumber);
System.out.println("Name: " + Name);
System.out.println("Balance: $" + balance);
}
public void addOverdraft(double setLimit){
limit = setLimit;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment