Show Bid Request
very very simple
Bid Request Id: 4221
|
|
|
Description:
The purpose of this assignment is to introduce you to C++ programming and the development environment.
Requirements
Write an application named ssnreader that will parse a data file in the following format: DATE=October 22, 2001 878-23-2313 324-24-4241 435-52-5322 231-42-2341 999-32-2236 313-32-1313 243-23-3525 545-62-5421 231-42-4153 310-23-1314 434-14-2412 434-35-3253 And converts it to the following format which gets written to a destination file: October 22, 2001 Data count: 12 878232313 324244241 435525322 231422341 999322236 313321313 243233525 545625421 231424153 310231314 434142412 434353253 The application must take as arguments the source and destination datafiles preceeded by -i and -o respectively as in: ssnreader -i data.txt -o out.txt If both arguments are not provided or it any other arguments are passed, the application should report the error: Error: invalid arguments Usage: ssnreader [-i <input file> | -o <output file>] The source datafile will have an arbitrary number of SSN entries following a line that indicates the date the data was collected. This line MUST BE composed of three parts: the DATE keyword, an equals sign, and the string with the date description. No SSN data should be read until this line is found.The SSN entries must be in their own line. Valid forms are xxx-xx-xxxx, or with no dashes at all. Invalid SSN entries must be ignored.Leading and trailing white-space is legal in the source file but should be discarded for the destination file. The application should ensure that the output file is only written to if the input file can be opened and has at least a date line present. Errors opening either file should be reported as: ssnreader -i huh -o out.txt Error: couldn't open "huh" for read
Make sure to add a comment at the top of your file with your name and section number (make sure your program still compiles and runs after you add this). Comment your code, and indent it for readability. Submit the file named main.c (we'll provide our own Makefile). Make sure the file is submitted correctly.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Special Conditions / Other:
This is really simple program.It needs just one file. I will give you one day.But you can finish within an hour. If you reach me earlier, you have more chance to be a winning bidder.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$100 (USD)
|
Oct 28, 2001 6:06:04 PM EDT
|
10
(Excellent)
|
|
|
I'll finish this tonight if you get back to me soon. |
|
|
|
|
|