output should look like this Class design User Class design

output should look like this:

Class design: User

Class design: account

class design: accountlist

Class Design: AccountList The AccountList class is intended to be an abstract and simplified representation of a list of accounts. Class Properties Accounts (an array of Account objects-or ArrayList) · o No getters or setters* (do you know why?) Class Invariant » Can\'t have multiple accounts with the same username Class Components A public method that adds new accounts · A public (boolean) method that determi A public (boolean) method that determines whether an account with a given username exists in . the list Grading Criteria » User class object o [2 points] Implements all required properties o o o - [2 points] Implements appropriate getters/setters [2 points] All invariants properly enforced [2 points] Required class components properly implemented [2 points] Driver class requirements are met » Account class object o [2 points] Implements all required properties [1 point] Implements appropriate getters - o o o [2 points] All invariants properly enforced [2 points] Required class components properly implemented [2 points] Driver class requirements are met » AccountList class object o o o o [2 points] Implements all required properties [2 points] All invariants properly enforced [2 points] Required class components properly implemented [2 points] Driver class requirements are met . [1 point] Method Java Doc: description, @param, @return » [1 Point] Descriptive variable names » [1 Point] Appropriate class header comment block

Solution

public class AccountingClass
{
   private double blnce;
   private double intrst;

   public AccountingClass()
   {
       blnce = 0;
       intrst = 0;
   }

   public AccountingClass(double initialBalance, double initialInterest)
   {
       blnce = initialBalance;
       intrst = initialInterest;
   }

   public void deposit(double amnt)
   {
       blnce = blnce + amnt;
   }

   public void withdraw(double amnt)
   {
       blnce = blnce - amnt;
   }

   public void addInterest()
   {
       blnce = blnce + blnce * intrst;
   }

   public double getBalance()
   {
       return blnce;
   }

}

output should look like this: Class design: User Class design: account class design: accountlist Class Design: AccountList The AccountList class is intended to

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site