Java Code//Accounts_Dawadi.java public class Accounts_Dawadi { public String accNumber; public String name; public double balance;//variables for account public Accounts_Dawadi() { accNumber=”-1″; name=”default”; balance=-1; } public Accounts_Dawadi(String acc, String nam, double bal) { accNumber=acc; name=nam; balance=bal; } public void openAccount() { System.out.println(“Name is “+ name+ ” naccount number “+ accNumber+ ” nbalance is “+balance); } public void checkBal() { System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Current Balance: “+balance); } public void deposit(double amount) { balance+=amount; System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Deposit Amount: “+amount); System.out.println(“New Balance: “+balance); } public void withdraw(double amount) { if(balance>amount) { balance-=amount; System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Withdrawn Amount: “+amount); System.out.println(“New Balance: “+balance); } else System.out.println(“Not enough balance”); } public void printStatement() { System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“End Balance: “+balance); } String getAccountNumber() { throw new UnsupportedOperationException(“Not supported yet.”); //To change body of generated methods, choose Tools | Templates. } }

The post Java Code appeared first on edubrained.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Java Code//Accounts_Dawadi.java public class Accounts_Dawadi { public String accNumber; public String name; public double balance;//variables for account public Accounts_Dawadi() { accNumber=”-1″; name=”default”; balance=-1; } public Accounts_Dawadi(String acc, String nam, double bal) { accNumber=acc; name=nam; balance=bal; } public void openAccount() { System.out.println(“Name is “+ name+ ” naccount number “+ accNumber+ ” nbalance is “+balance); } public void checkBal() { System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Current Balance: “+balance); } public void deposit(double amount) { balance+=amount; System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Deposit Amount: “+amount); System.out.println(“New Balance: “+balance); } public void withdraw(double amount) { if(balance>amount) { balance-=amount; System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Withdrawn Amount: “+amount); System.out.println(“New Balance: “+balance); } else System.out.println(“Not enough balance”); } public void printStatement() { System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“End Balance: “+balance); } String getAccountNumber() { throw new UnsupportedOperationException(“Not supported yet.”); //To change body of generated methods, choose Tools | Templates. } }

The post Java Code appeared first on edubrained.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Java Code//Accounts_Dawadi.java public class Accounts_Dawadi { public String accNumber; public String name; public double balance;//variables for account public Accounts_Dawadi() { accNumber=”-1″; name=”default”; balance=-1; } public Accounts_Dawadi(String acc, String nam, double bal) { accNumber=acc; name=nam; balance=bal; } public void openAccount() { System.out.println(“Name is “+ name+ ” naccount number “+ accNumber+ ” nbalance is “+balance); } public void checkBal() { System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Current Balance: “+balance); } public void deposit(double amount) { balance+=amount; System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Deposit Amount: “+amount); System.out.println(“New Balance: “+balance); } public void withdraw(double amount) { if(balance>amount) { balance-=amount; System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“Withdrawn Amount: “+amount); System.out.println(“New Balance: “+balance); } else System.out.println(“Not enough balance”); } public void printStatement() { System.out.println(“Account Name: “+name); System.out.println(“Account Number: “+accNumber); System.out.println(“End Balance: “+balance); } String getAccountNumber() { throw new UnsupportedOperationException(“Not supported yet.”); //To change body of generated methods, choose Tools | Templates. } }

The post Java Code appeared first on edubrained.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp