Reference no: EM132809802
Assignment
Write a program that uses a file named COS230BANK.dat. The contents of the file are recordType (char), customerNumber (int), flrstName (string), lastName (string) - firstTransaction (int) and IastTransaction (int). Store this information is a list of customer records.
When the program opens. read in the list of customer records. When the program ends, write the list back to the file COS230BANK.dat. The user will be given a menu with the following options. 1. Add a customer record. 2. Edit a customer record. 3. Remove a customer record 4. List the customers.
recordType will always be 'C'. customerNumber will start at 1000, firstTransaction and lastTransaction will always be 0. The customer list must be sorted before displaying and before saving. Pick the best sort algorithm for this program. Be prepared to explain why you picked that particular algorithm_ Records must he sorted by lastName then flrstName. Use an endl to separate your records when writing your file.
Use the following files to build your project
CustomerRecord.h & CustomerRecord.cpp for customer record class.
SortedListh & SortedList.cpp to declare and define your list class.
Bank.h and Bank.cpp for bank functions (menu. add, edit, remove, display and other functions main.cpp for the main program.