Write a program that keeps track of customer records. Each customer record will contain a record type, an ID number, first name, last name, active, first transaction number and last transaction...


Write a program that keeps track of customer records. Each customer record will contain a record type, an ID number, first name, last name, active, first transaction number and last transaction number. Record type will always be capital C for customer. ID number will start at 1000 and count up. First name and last name should be self-explanatory. Active will contain Y or N. First transaction number and last transaction number will both be set to zero for now. We will be expanding on this project later in the semester.

Your list should be able to hold 1000 customers. Your add() function should return a boolean to let the user of the class know if a customer is able to be added or the list is full. When your program starts up it will be read from file
bank.txt. The same file will be saved when your program closes. Your program will have the following menu options.




Assignment 1 Write a program that keeps track of customer records. Each customer record will contain a record type, an ID number, first name, last name, active, first transaction number and last transaction number. Record type will always be capital C for customer. ID number will start at 1000 and count up. First name and last name should be self-explanatory. Active will contain Y or N. First transaction number and last transaction number will both be set to zero for now. We will be expanding on this project later in the semester. Your list should be able to hold 1000 customers. Your add() function should return a boolean to let the user of the class know if a customer is able to be added or the list is full. When your program starts up it will be read from file bank.txt. The same file will be saved when your program closes. Your program will have the following menu options. 1. Add New customer. 2. Display all customers 3. Find Customer (by ID) 4. Find Customer by name 5. Edit Customer record 0. Quit After adding each customer, re-sort the list. It is up to you to decide which sorting algorithm to use. You will also hand in a short word document, explaining why you chose that specific sorting algorithm. When saving first name or last name, replace spaces in the names with underscore. Remember reading a file as a stream uses spaces for delimitation. I will explain this in class. When the names are read back in, remove the underscores. Example: Mc Donald becomes Mc_Donald in the file. Please remember to keep each class in their own header files and c++ files. In your word document, explaining your choice of sorting algorithm, will be in paragraph form. Refer to the Big O runtime of your algorithm. You should also refer to the nature of your data. The following rubric will be used in grading (30 points total): 5 Points - Program works correctly 5 points - CustomerRecord class 5 points - List class 5 Points - choice of sorting algorithm 5 points - Your writeup about your choice of sorting algorithm 5 points - Program is logical and readable. Instruction: 1) Create Separate Class File List, CustomerRecord a. List.h b. List.cpp c. CustomerRecord.h d. CustomerRecord.cpp e. Main.cpp 2) Use only #include , #include , #include 3) Try to make less code in main.cpp
Feb 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here