Find Jobs
Hire Freelancers

C++ homework: Parse datafile(html), store in struct, write to binary file

$20-25 USD

Cancelled
Posted about 19 years ago

$20-25 USD

Paid on delivery
I need this done before 48 hours! Please tell me how long this will take you. The previous programmer got in an accident and couldnt complete. Please see the attachment for the rest of the details. I would prefer C++, this is the first proj for a Database B-Tree Implemention (indexing, branching, etc). Someone with knowledge of that and who can complete other upcoming/sequential projects would be helpful. I will provide the datafile, so you will not have to worry about the first step Specification 1. Your code should read in the input data, which as you will see has variable length fields. 2. Your code should extract each field individually and write it to the screen, and to disk. 3. The fields written should be fixed length fields. Thus it may be necessary to truncate some fields. 4. The primary key is the NID ID. We will assume there are no duplicates. 5. At the same time you should construct a data record (structure) consisting of fixed length fields. 6. The record should be written to a file - datafile.txt. 7. The records should be written one record at a time (not field by field). 8. You should use C++ type output you would do something like the following. There are probably many solutions, but this is one that appears to work: [login to view URL]((char*) &MyDataRecord, sizeof(MyDataRecord)); 9. The required format for output to the screen is 10. Sequence number (RRN) 11. Primary key 12. All other fields in the record in the same order as in the data file # The output for one record should fit on one line. Fields should be separated by '|' character. # The format for the output file should be similar, but omit the RRN and '|'. # Note that in some cases the "Clan" field is omitted. This should be detected and a blank Clan provided. # Your executable file should be named showdata. # There should be no restriction on the number of records processed. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Linux, G++!
Project ID: 3630498

About the project

3 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $18 USD for this job
User Avatar
See private message.
$20.40 USD in 1 day
5.0 (8 reviews)
3.6
3.6
User Avatar
See private message.
$11.90 USD in 1 day
5.0 (6 reviews)
2.8
2.8
User Avatar
See private message.
$21.25 USD in 1 day
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
United States
4.9
159
Member since Jul 18, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.