Question: Java . 5.10 LAB: InvestmentAccount class (EO) Make a class called InvestmentAccount that manages checking and savings accounts associated with an account dedicated to investing

 Java . 5.10 LAB: InvestmentAccount class (EO) Make a class called
Java

. 5.10 LAB: InvestmentAccount class (EO) Make a class called InvestmentAccount that manages checking and savings accounts associated with an account dedicated to investing funds. The class has three private member fields: an account holder's name (String), the account holder's savings account balance (double), and the account holder's checking account balance (double) Implement the following Constructor and instance methods public investmentAccount(String ahName, double checkBal, double saveBal) - set the account holder's name to parameter ahName. set the checking account balance to parameter checkBal, and set the savings account balance to parameter saveBal (Bal stands for balance and an in ahName stands for account holder) public void setName(String ahName) - set the account holder's name public String getName() - return the account holder's name public void setCheckBal(double amt) - set the checking account balance to parameter amt public double getCheckBalo - return the checking account balance public void setSaveBal(double amt) - set the savings account balance to parameter amt public double getSaveBal() - return the savings account balance public void depositCheckBal(double amt) - add parameter amt to the checking account balance (only if positive) public void depositSaveaBal(double amt) -add parameter amt to the savings account balance (only if positive) public void withdrawCheckBal(double amt) - subtract parameter art from the checking account balance (only if positive) public void withdrawSaveBal(double amt) - subtract parameter amt from the savings account balance (only if positive) public void transfer To SaveBal(double amt) - subtract parameter amt from the checking account balance and add to the savings account balance (only if positive) 289222158418 . . LAB ACTIVITY 5.10.1: LAB: Investment Account class (EO) 6/10 Lood default template InvestmentAccount.java 1 public class Investment Account ! 2 private String name; 3 private double checkBal; 4 private double saveBat; 5 6 public InvestmentAccount(String ahName, double checkbal, double saveBal) { 7 this.name - ahName; this checkBol checkfol

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!