![]() ![]() ("Enter a withdraw amount") Ĭase 4: ("Enter a account number") ("Enter a deposit amount") Ĭase 3: ("Enter a account number") ("Account was created and it has the following number: " + myBank.openNewAccount(cn, d)) Ĭase 2: ("Enter a account number") ![]() ("Enter choice : ") Ĭase 1: ("Enter a customer name") ("5) Print the detailed account information including last transactions") ask user for his choice and validate it (make sure it is between 1 and 6) cannot figure out how to return this is a string. i have a variable private int numOfTransactions and I tried incorporating that into the function, but it didn't work. I have to create a function public String getTransactionInfo(int n) which returns the last n transactions of a bank account. ![]() The part that I am stuck on is the transactions part. I am creating a Bank program, and I have almost everything done. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |