Question: Design and implement a Java program that reads a number of bank accounts entered by the user and then print them sorted based on their

 Design and implement a Java program that reads a number of

Design and implement a Java program that reads a number of bank accounts entered by the user and then print them sorted based on their account balance. Each bank account information is entered as a set of four fields (pieces of information) as shown below: Account Number (integer) Customer full name (string) Customer email (string) Account Balance (double) The program is expected to read a number of the accounts from the user (console) and then the accounts information and then prints the records in the format shown below, sorted in decreasing order based on the account balance: Account Number: 1201077 Name : Jonathan I. Maletic Email : jmaletic@ksu.edu Balance : 10,000.17 Note: The records are entered in the following format (4 lines for each account): First Line is the account number Second Line is the full name The third line is email Fourth line is the available balance Example (data entered by the user) Output: Account Number: 1333333 Name : Bill Bultman : Bill.bultman@uwc.edu Balance : 120,000.00 Email Bill be 1201077 Jonathan I. Maletic jmaletic@ksu.edu 10,000.17 1991999 Saleh M. Alnaeli alnaelis@uwstout.edu 5,000.11 1333333 Bill Bultman Bill.bultman@uwc.edu 120,000.00 Account Number: 1201077 Name Jonathan I. Maletic Email jmaletic@ksu.edu Balance : 10,000.17 Account Number: 1991999 Name : Saleh M. Alnaeli Email alnaelis@uwstout.edu Balance 5,000.11 Hint: Use multiple (4) arrays (parallel arrays you learned in CSI) to hold the record fields and sort them based on the balance array Design and implement a Java program that reads a number of bank accounts entered by the user and then print them sorted based on their account balance. Each bank account information is entered as a set of four fields (pieces of information) as shown below: Account Number (integer) Customer full name (string) Customer email (string) Account Balance (double) The program is expected to read a number of the accounts from the user (console) and then the accounts information and then prints the records in the format shown below, sorted in decreasing order based on the account balance: Account Number: 1201077 Name : Jonathan I. Maletic Email : jmaletic@ksu.edu Balance : 10,000.17 Note: The records are entered in the following format (4 lines for each account): First Line is the account number Second Line is the full name The third line is email Fourth line is the available balance Example (data entered by the user) Output: Account Number: 1333333 Name : Bill Bultman : Bill.bultman@uwc.edu Balance : 120,000.00 Email Bill be 1201077 Jonathan I. Maletic jmaletic@ksu.edu 10,000.17 1991999 Saleh M. Alnaeli alnaelis@uwstout.edu 5,000.11 1333333 Bill Bultman Bill.bultman@uwc.edu 120,000.00 Account Number: 1201077 Name Jonathan I. Maletic Email jmaletic@ksu.edu Balance : 10,000.17 Account Number: 1991999 Name : Saleh M. Alnaeli Email alnaelis@uwstout.edu Balance 5,000.11 Hint: Use multiple (4) arrays (parallel arrays you learned in CSI) to hold the record fields and sort them based on the balance array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!