Sample Output: Part B) In Part B, you will modify your previous BankTest class. This time, the number of accounts will n

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Sample Output: Part B) In Part B, you will modify your previous BankTest class. This time, the number of accounts will n

Post by answerhappygod »

Sample Output Part B In Part B You Will Modify Your Previous Banktest Class This Time The Number Of Accounts Will N 1
Sample Output Part B In Part B You Will Modify Your Previous Banktest Class This Time The Number Of Accounts Will N 1 (100.56 KiB) Viewed 65 times
Sample Output: Part B) In Part B, you will modify your previous BankTest class. This time, the number of accounts will not be 4 but user defined for the sake of simplicity, you can make it 10 at most). After reading the number of accounts, for each account, you will read the type and related information from the user and you will create your instances accordingly with respect to their types • Add each account to your arraylist which is keeping BankAccount type objects. • Print all accounts' information so that the user can see the details. • Ask the user to enter an account number and retrieve the corresponding object o At this point, you will use a method which you will create to find an account in a list (see details below) The rest is going to function as before just like your assignment 7 . retrieveObject method: Enter number of accounts (at most 10) 5 Enter the type of the user (CH, SV, CC): CH Enter your initial balance, interest rate and account number: 1000 0.2 CH123456 Enter the overdraft fee: 100 Enter the type of the user (CH, SV, CC): SV Enter your initial balance, interest rate and account number: 120006 0.5 SV234567 Enter the type of the user (CH, SV, CC): CC Enter your initial balance, interest rate and account number: 20000 6.1 CC192837 Enter the credit limit: 40000 Enter the type of the user (CH, sv, CC): CH Enter your initial balance, interest rate and account number: 1280 0.61 CH909078 Enter the overdraft fee: 5 Enter the type of the user (CH, sv, CC): takes a string object and an arraylist of BankAccount type as argument returns the index of the found account if no such account exists, returns -1 CC Enter your initial balance, interest rate and account number: 5999 6.1 CC554466 Enter the credit limit: 10800 Checking account number: CH123456 Balance is: 1000 Saving account number: SV234567 Balance is: 128000 Credit Card account number: CC192837 : Balance is: 20000 Checking account number: CH999978 Balance is: 1200 Credit Card account number: CC554466 : Balance is: 5000 Enter the customer account number //the same functionality of assignment 7 Submission: Submit your 2 new Java files (Credit Card and modified BankTest in a single zip folder)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply