Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Ask your questions and receive detailed answers from professionals with extensive experience in various fields. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.
Sagot :
Answer:
// ************************************************************
// ManageAccounts.java
//
// Use Account class to create and manage Sally and Joe's
// bank accounts
// ************************************************************
public class ManageAccounts { public static void main(String[] args) { Account acct1, acct2; //create account1 for Sally with $1000 acct1 = new Account(1000, "Sally", 1111); //create account2 for Joe with $500 //deposit $100 to Joe's account //print Joe's new balance (use getBalance()) //withdraw $50 from Sally's account //print Sally's new balance (use getBalance()) //charge fees to both accounts //change the name on Joe's account to Joseph //print summary for both accounts } }
Hope this helps:)
We hope our answers were useful. Return anytime for more information and answers to any other questions you have. We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Westonci.ca is your go-to source for reliable answers. Return soon for more expert insights.