Due Monday, November 22
Title: Sorted Customer Records
Topics covered:
Arrays
Array of Strings
Comparing Strings
Sorting: Insertion Sort
Purpose: Write a program that outputs a table of customer records in alphabetical order by name.
Description:
Write a C++ program that allows the user to enter a customer's last name and balance. The user will continue to enter customer records (name and balance) until a period is entered for the customer name. Your program will then output a 2-column table with the customers' names and balances sorted in alphabetical order by name. To sort the table use Insertion Sort. Also compute the average balance of the customers.
Your program should include the following functions with the appropriate parameters:
ProgramPurpose() - Displays purpose of program.
GetData() - Inputs customer records.
InsertionSort() - Sorts customer records in alphabetical order by name
Average() - Computes average of elements in an array
DisplayTable() - Displays the table