Question: please also provide output and computer screen where you run the program provide detailed answer Please remember to read and follow the assignment requirements. In

please also provide output and computer screen where you run the program
 please also provide output and computer screen where you run the
program provide detailed answer Please remember to read and follow the assignment
provide detailed answer

Please remember to read and follow the assignment requirements. In this assignment, you will write a very simple data maintenance Java program for a bank. Some of the techniques used (arrays as data structures, selection sort) will be review from cosel047, while others (searching) will be the material you are now covering (or you have learned). This program will likely be physically longer than you have written so far, so remember do implement it in a modular fashion- do a proper program design even though you don't have to hand your design in. Also remember to START THIS ASSIGNMENT SOON, DO NOT leave it until the last minute! John's 24-Hour Bank and 1-Hour Dry Cleaning is a new institution that has just begun to offer banking (and cleaning!) services to the University community. Your program will (thankfully) deal with only the banking end of the business. Every client of the bank has a customer number, and can have several types of accounts: checking, savings, and mutual funds. The bank will store a record for each account consisting of a customer number (an integer) representing the owner of the account, an account type (a single char: C for chequing, S for savings, and M for mutual fund), and the balance of the account (a double). These are kept in three arrays-an array of customer numbers, an array of types, and an array of balances. A sample of what this might look like appears below: The entries in the array correspond to one another-for example, the first slot in all three arrays represent the fact that customer number 102241 has a chequing aceount with $1.29 in it. As is shown, the same customer number can appear several times, as customers can have more than one account. These are called parallel arrays, because the slots in each correspond, and the really important thing about parallel arrays is that if you shuffle around anything in one array, you have to perform the same shuffles to the others. For example, say we delete one particular account. If we remove the entry from the customer array, but not the others, nothing matches any more and the data is worthless. Similarly. if we sot by bulanee, every data movement in the balanee array must be daplicamed in the ethers precisely, or once again the correspondence is lost. Since the array entries correspeed to oee another, we also need only keep track of the sire (the eumber of entries used) ence, since there will be the same number of eatries in all three arrays Yeer bankige system will not do terriky much (by bunking sytem standank!? When yon start the program, it will look for a text file called bank.tst, opea it, and load the three arays with the data contained there. You can assume that bank.txt will contain ene entry per lise- the first customer number, then the account type on the newt line, and the balance ce the neut lise, then the next custeener number, and so ce. The data will not be in any particular erder, bur yee can assume all data for escli account will be presem (that is, there'll be no anmathing balances, etc l and that the data will be cror-froe Yeur bank will hold a maximum of 200 acceums, but yed do NOT know how many will be in the file (yee'll have to count them as you read and keep track of the sizes of arrays). Oese you have the data read in, you will prempt the wiet on the sereen to enter commands (single character). We will ignore the usal dababe epdabe commands (creating, deleting acceunts, etc), and concentrate ealy on selecting and viewing data. The valid conmands your system will swppot are $ (Search for an aceount), P (Print Total Balances), and Q (quit). You should crror cbeck these to ensure that other leners are bot aceeped (just print an error message is ruch caises and proese for the consmand again). Your system will acecpt S and P cexmmands until eventually the user emters a Quis command, causing the pregram to terminate. The P and S commands must epcrate as follows: When processing the Priat Total Balances command, you will need to firs ensure that the arrays representiog the aceounts are serted by customer number so that all accouncs for a particular custoner appear together. Print Toeal Balances shoold thus begin by calling a Selection Sert method that yeu must write. Yeo will have te slightly alier the ene you sw in class. beeade yee are using paralle arrays here. Remember, you have no keep the correypondesce berween slots this means that whill you're sorting the customer bumbers, you will have to perfonm identical swaps in all three antays. After the array has been sorted. Priat Total Balances will print ONE entry for each customer shuming the TOTAl. of AL.L the accounts that customer has. You ment only go through the atray ONCE to de this, which showldn't at all be a probker once the data's sorted. A Search command will allow the wer to search for an aceount by acecunt number, type. or both. The routine to process a search command will prompt the wer for a costomer eumber and account type. The wer can either enter a valid value for these, of enter 0 for an acsount number of X for an accecat bye. An acevunt namber of O of an acsount type of X will be considered a "don't care" on the user's part, allowing the search routine to display multiple gesults. For example, searching for an aceount of 12345 and an acceenat type of X will cause Al.1. aceounts for cwiomer number 12345 to be displayed. regardiess of the type of account. If they enterad 12345 and C, it would only display the chequing acceuet, if there were one. Similarly, a 0 for an accoent number, and an aceoune type of S would cmase ALL awings to be diviplayed. A single search command should enly go throagh the arays ONCE, and you sheuld not sott of cherwiee fe-arrange the arrays. Data returned by a seasth of Print Total Elalances shoald he dieplayed in a table format, showing the ficlds from all three arrays (that is, the customer number, acsount type, and balance for all "found" account eatries). For a search, if no dara is foend, simply dispiay a message indicating that. In general, date shoald be niocly formatiod and columns should be labeled appropriately. Yea do not need to have a GUI for your peogram Upload a printed copy of your poogram and the eatput of your progsam inso CMS, using the teat data posted on the website

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!