Question
1) Design and implement a complete Java program that reads some bank account records (information) entered by the user and then print them sorted in
1) Design and implement a complete Java program that reads some bank account records (information) entered by the user and then print them sorted in descending order based on saving Balance. Each account record information is entered as a set of four fields (pieces of data), as shown below: customerName (String) accountID (int) checkingBalance (double) savingBalance (double) The program is expected to read a number of the bank accounts from the user (console) and then the accounts' information and then prints the records in the format shown below, sorted in descending order based on the saving Balance: Customer Name : Michale AccountID : 1002023 Checking Balance : $18,125 Saving Balance : $42,208 ------------------------------------- Note: The records are entered in the following format (4 lines for each account): The first line is the Customer's Name The second line is AccountID The third line is Checking Balance The fourth line is Saving Balance
Hint: Use multiple (4) arrays to hold the record fields and sort them based on the saving Balance array. Note: Please do your best to write clean, readable, and elegant code. Additionally, use adequate comments to explain your code fragments when needed. Code quality will be considered when evaluating and grading your code and work. Java coding style and convention: Coding style expected for all programming projects: 1. All identifiers have meaningful names. 2. All constants are in CAPS 3. All class names start with a Capital letter 4. Method and variable names start with a small letter, and capital letters mark the beginning of all words except the first. 5. The program is well-indented. 6. The program has a header with the coder's name, date, and description. Any modifications from an existing program should be noted. 7. All methods have comments describing their parameters, return type, and purpose. 8. All variables and constants carry comments describing their purposeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started