(No Login on Secured Page)
|
|
Show Bid Request
i/o files
Bid Request Id: 10014
|
|
|
Posted by: |
jc0000 (15 ratings)
(Software buyer rating 8.8)
|
Non-action Ratio: |
Very Good - 15.38%
|
Posted: |
Mar 3, 2002 8:36:45 AM EDT
|
Bidding Closes: |
Mar 17, 2002 8:46:52 AM EDT
|
Viewed (by coders): |
128 times
|
Deadline: |
3/4/2002
TIME EXPIRED
|
|
|
|
Description:
(more special instructions are under the deliverables section below.It's exactly what was on the assignment sheet)
Original name:
Achilles
Agamemnon
Minerva
Corrupted name:
Dave Lister
Rimmer
Kryton
A very general description of what you need to do is:
1.Prompt the user to enter the input file name and an output file name.
2.Open the corrupted Illiad file of the users choosing.
3.Read in a line of text.
4.Search the line of text for the three corrupted names.
5.As you find a corrupted name replace it with the appropriate correct name.
6.As you find a corrupted name, keep track of the number of occurances that you replace. You will print out the total
for each name and the total number of lines of text searched at the end of the program.
7.Write the line of text to the output file. If you do not find any corrupted names in the line of text, you should just
write that line of text directly into the output file.
8.Repeat starting at number 2.
9.Be sure to close your files before you exit your program.
more instructions:
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. having the file in the assignment is not necesary. Complete copyrights to all work purchased. make it simple , as simple as possible. must include this at beginning of code (I can't accept if winner's code doesn't match my specifications) #include <iostream> #include <fstream> #include <string> using namespace std; int main() { // get file names from the user string inFile; string outFile; cout << "Enter the input file name: "; cin >> inFile; cout << "Enter the output file name: "; cin >> outFile; // Showing two different ways to open the file. // They are both equally correct. ifstream fin(inFile.c_str()); ofstream fout; fout.open(outFile.c_str()); // check to make sure the files opened. if(fin.bad()){ cerr << "Unable to open file " << inFile << endl; exit(1); // exit the program if file is not opened } if(fout.bad()){ cerr << "Unable to open file " << outFile << endl; exit(1); // exit the program if file is not opened }
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased. In order to open the files, you will have to use a line of code similar to this: ifstream fin(InputFile.c_str());
Be sure to inlcude the ctype library file to get the c_str() function. The input file needs to be in the same directory from which you run your program. Your program should read one line of text at a time from the file. I ended up using a while loop and kept reading lines of text until I reached the end of the file. Each time I read in a line of text, I would do the following: Search for the name "Dave Lister". If found, would replace Dave Lister with Achilles. Search for the name "Rimmer". If found, would replace Rimmer with Agamemnon. Search for the name "Kryton". If found, would replace Kryton with Minerva. When searching the line of text, treat "Dave Lister" as if it were one word. I would check each line of text for multiple occurances of each name. This can be done by continuing to search the same line of text until the find() function returns the value string::npos. Touch up on the string class either in Appendix C.2 or the string review posted on the course Website. Once you have found and replaced all of the occurances of each corrupted name, you should write that line of text into the output file If/when I found a line of text without any corrupted names, I wrote that line of text directly to the output file. Just as if you are printing to the standard output (Terminal), If you want the output to go to the next line, you should insert an endl at the end of the line. Keep track of each occruance of each of the corrupted names that you replace. At the end of the program, output the number of replacements you made for each name. Also output the total number of lines of input that you searched. Be sure to close both files only when you are finished replacing all of the corrupted names.
Platform:
unix, windows
Must be 100% finished and received by buyer on:
Mar 4, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
I would love it if i could get the complete program by sunday night( 3/3/02). Please take a look at all the project info before bidding. Be willing to follow he instrucions, please. And respond quickly .thanks!!
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 |
|
|
No bidding allowed, because this bid request was cancelled.
|
Cancelled Date: |
5/8/2003 9:01:04 PM
|
Cancelled Reason: |
|
|
|
|
Credentials
|
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
- All customer issues addressed within 2 days
- Openly disclosed pricing and return policies
- Participation in mediation at buyer request
- Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
|
|
See all top coders...
(What makes a top coder?)
Top Exam Scorers
Created in partnership with:
|
|