Fill in the code for method changename which takes a string


1. File Account.java contains a partial definition for a class representing a bank account. Save it to your directory and study it to see what methods it contains. Then complete the Account class as described below. Note that you won't be able to test your methods until you write ManageAccounts in question #2. 
a. Fill in the code for method toString, which should return a string containing the name, account number, and balance for the account. 
b. Fill in the code for method chargeFee, which should deduct a service fee from the account. 
c. Modify chargeFee so that instead of returning void, it returns the new balance. Note that you will have to make changes in two places. 
d. Fill in the code for method changeName which takes a string as a parameter and changes the name on the account to be that string. 
2. File ManageAccounts.java contains a shell program that uses the Account class above. Save it to your directory, and complete it as indicated by the comments.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Fill in the code for method changename which takes a string
Reference No:- TGS0116259

Expected delivery within 24 Hours