The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
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);
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll