Objective: In this assignment, you need to demonstrate mainly file operations, loops, string operations, and user defined functions (optional).
Description
You will develop a C++ program to spell out numbers given in a file. Assume that you have text file appears as
5/3/2014
12-4-2011
01-19-200
1/1/2011
03/03/1900
...
...
Input file has one data at each line. Notice that month, day, and year of date can be seperated by '/' or '-'. For the above file, your program should generate
May 3rd, 2014
December 4th, 2011
January 19th, 200
January 1st, 2011
March 3rd, 1900
...
...
While completing your assignment, write a function takes a string, which is a date from the file, and returns a string, which is spelling out of number, i.e., the prototype seems like
string Spell(string a);