Project-Part 3 //already have a name and bankAccount class made Now let us conti
ID: 3650076 • Letter: P
Question
Project-Part 3//already have a name and bankAccount class made
Now let us continue to develop the banking system. Please complete the following requirements:
Create a class Banking3.java which will demo BankAccount.java and Name.java classes. In this demo class, you will do:
a) Read the account information from the file, AccountInfo.txt to a BankAccount array. You must rewrite Banking2.java with split() provided by the class String.
b) Print the summary of each account using toString method. Make sure that your program reads the file correctly.
c) You must create a static search method to help the user to get the custom information based on an account number.
d) Your program will ask the user to enter:
Explanation / Answer
//******************************************************************** // Banking.java Author: Batman // // Let's do some banking at The Bank. // //******************************************************************** public class Banking3 { public static void main (String[] args) { // Create a customers with an account Customer3 me = new Customer3("Sophie Quigley", "416-979-5000X7401", "quigley@ryerson.ca"); Account3 myaccount = new Account3(me); //Do stuff on myaccount myaccount.Withdraw(50); System.out.println("My balance is: "+myaccount.Balance()); myaccount.Deposit(100); System.out.println("My balance is: "+myaccount.Balance()); myaccount.Withdraw(50); System.out.println("My balance is: "+myaccount.Balance()); } }
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.