Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program In: C++ Only Use #include iostream, string, and fstream Create Separate File for Class File List.h, CustomerRecord.h, List.cpp, CustomerRecord.cpp Write a program that keeps

Program In: C++

Only Use #include iostream, string, and fstream

Create Separate File for Class File List.h, CustomerRecord.h, List.cpp, CustomerRecord.cpp

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: John Doe becomes John_Doe in the file.

Create Sperate File for List, CustomerRecord, and Main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions