CIS 260 C++ Programming

Program Requirements: Name to Phone Number Converter

Create a program that reads a list of “word” phone numbers from a file and converts them to all digit phone numbers, and prints the results to another file. There is no limit to the size of the input file.

Sample Input: (TELNUM.TXT)

800 CALL ATT
800 Loan Yes
800 42QUICK
517 4 Dr Foot
985-PAPA
(810) 984-3881
888 NIKE SHOE
WHASSUP?
Auto Loan
GO SCCCC

Sample Output: (TELNUM.OUT)

800 2255 288
800 5626 937
800 42Q8425
517 4 37 3668
985-7272
(810) 984-3881
888 6453 7463 
9427787? 
2886 5626 
46 72222

The program should read input from TELNUM.TXT and produce output to the screen, and to TELNUM.OUT. Each number will be on a separate line in the input file.

Use functional decomposition and modular programming techniques to divide the problem into appropriate functions.  NO GLOBAL variables are allowed.

 Following the guidelines discussed in class, construct a test set for the program.

Final Program Includes 

Problem Description
Algorithm
Functional Decomposition (showing structure and function headers)
Test Set Design
Source Code
Sample Output