Question: Create a (simplified) C# class for a bank account object with the following 3 properties: account number (int type), customer name (string type) and account

 Create a (simplified) C# class for a bank account object with

Create a (simplified) C# class for a bank account object with the following 3 properties: account number (int type), customer name (string type) and account balance (double type). Define an array type as the bank account class to store the 10 bank accounts. Use a "for loop" to generate 10 bank accounts accordingly to the following specification: (a) Each account number is 7 digits with 5 digits random number (from 10000 to 99999) plus 2 check digits. The check digits are the sum of the five digits added together. (b) Use a List to initialize 10 customer assign a name to each account customer names of your choice and randomly name without duplication. (c) Randomly create and assign a balance amount to the account balance property ranging from $100.00 to $5, 999.99. (d) Print the 10 account information during your creation of them, one line per account. Use one of the selection sort, bubble sort, or insertion sort to sort the array of 10 bank account objects into descending order of account balance. You just need to modify one of it to suit the object data type. Print the 10 account information after they are sorted in descending order of account balance one line per account. Compute and print the average account balance amount for the 10 accounts. Submit the C# code and the result screen shots of unsorted account listing, sorted account listing, and the average balance

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!