/**                                                        // line  1
 * Simple representation of a bank account                 // line  2
 *                                                         // line  3
 * @author Hyrum D. Carroll                                // line  4
 * @version 0.2 (August 27, 2020)                          // line  5
 */                                                        // line  6
public class SimpleBankAccount{                            // line  7

    private double balance;                                // line  9

    /**                                                    // line 11
     * Constructors for objects of class SimpleBankAccount // line 12
     */                                                    // line 13
    public SimpleBankAccount(){                            // line 14
        this( 0.0 );                                       // line 15
    }                                                      // line 16

    public SimpleBankAccount( double balance ){            // line 18
        this.balance = balance;                            // line 19
    }                                                      // line 20

    /**                                                    // line 22
     * Add money to the balance                            // line 23
     *                                                     // line 24
     * @param  amount the amount to deposit                // line 25
     * @return void                                        // line 26
     */                                                    // line 27
    public void deposit(double amount){                    // line 28
        balance = balance + amount;                        // line 29
    }                                                      // line 30

    /**                                                    // line 32
     * Remove money from the balance                       // line 33
     *                                                     // line 34
     * @param  amount the amount to withdraw               // line 35
     * @return true (success) or false (failure)           // line 36
     */                                                    // line 37
    public boolean withdraw(double amount){                // line 38
        if( balance - amount >= 0 ){                       // line 39
            balance -= amount;                             // line 40
            return true;                                   // line 41
        }else{                                             // line 42
            return false;                                  // line 43
        }                                                  // line 44
    }                                                      // line 45

    /**                                                    // line 47
     * Get the balance                                     // line 48
     *                                                     // line 49
     * @return the balance                                 // line 50
     */                                                    // line 51
    public double getBalance(){                            // line 52
         return balance;                                   // line 53
    }                                                      // line 54

    /**                                                    // line 56
     * Apply account number (after verifying it's unique)  // line 57
     * @param accountNum (Unique) account number           // line 58
     * @return True if successful, false otherwise         // line 59
     */                                                    // line 60
    private boolean applyAccountNumber( int accountNum ){  // line 61
        // FUTURE: Determine if accountNum is unique    // line 62
                                                           // line 63
        // FUTURE: Apply account number                    // line 64
                                                           // line 65
        return true;                                       // line 66
    }                                                      // line 67
}                                                          // line 68