Home / Expert Answers / Computer Science / all-of-the-code-should-be-done-in-c-here-is-the-bank-1234567890-dylan-hunt-123345678-90-46853-pa991

(Solved): All of the code should be done in C++. Here is the bank. 1234567890 Dylan Hunt 123345678.90 46853 ...



All of the code should be done in C++.
Files
Bank Database:
Write a program to read in a file from the database of a bank. The database file should contain the acco
Here is the bank. 

1234567890 Dylan Hunt 123345678.90
4685316746 Beka Valentine 135454.65
4689346315 Tyr Anhasizi 465645.25
4688354866 Seamus Harper 6856.45
8769641356 Telemachus Rhade 46854.54
8741658749 Malcolm Reynolds 4687.56
3124093439 Kaylee Frye 898.42
3431666432 Jayne Cobb 60000.00
2394898352 Zoe Washburne 4200.55
3249893844 Hoban Washburne 45425.33
3243453255 Inara Serra 444332.33
8972494377 Simon Tam 1334432443.34
3095280925 River Tam 0.00
4903484830 Derrial Book 3243.43
4685896844 Jack O'niell 68883.24
6458546463 Samantha Carter 86545.21
4658785155 Daniel Jackson 5482.54
5469485466 John Shephard 68457.25
4896846643 Rodney McKay 684854.55
4898843485 Cameron Mitchell 48746.25
0000000000 CanYou NameShows 5.5
Files Bank Database: Write a program to read in a file from the database of a bank. The database file should contain the account numbers, name, and balance of each account. You can grab bank.in on moodle to use for input. Bank.in: File starts below this line 1234567890 Dylan Hunt 1234567.58 4685316746 Beka Valentine 135454.65 4689346315 Tyr Anhasizi 465645.25 4688354866 Seamus Harper 6856.45 8769641356 Telemachus Rhade 46854.54 Checkpoint 1: Start by creating a struct to hold each record. Now make an array of records, each one will hold the data from one account in the file. Then you can loop and take in each record until you reach the end of file. The input format will be account\#(long long), first name(string), last name(string), and balance(float). Use the array to display the account information on screen. Checkpoint 2: After the entire fille is read and stored in your array, we can use the array to access any information. Make a deposit into some accounts and display the results. Checkpoint 3: In order to save our changes, we must write the contents of memory to a file. Take our database and output it in the same format to bank.out. Random Lists: In the next assignment we need a couple large lists filled with random numbers. Write 2 lists of 10,000 random numbers to 2 different files. The format for this file should be numbers in the file, , and then a list of numbers. Checkpoint 4: The first file should have completely random numbers using rand(). The file should be generated in a way where the numbers are in ascending order. We can still use rand() to get numbers, but we will add the random number to the previous number in the list. The final list will contain random numbers that are ascending. random. out: . - . Sorted. out: . . . Checkpoint 5: Write a function that will take in a string for a filename. Open the file and read the data into memory. You may want to dynamically allocate an array based on how many numbers are in the file.


We have an Answer from Expert

View Expert Answer

Expert Answer


Here is a C++ program to accomplish the given tasks:#include #include #include #include #include #include struct BankAccount { long long accountNum
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe