Find Jobs
Hire Freelancers

C++ stuff

$30-50 USD

Cancelled
Posted almost 17 years ago

$30-50 USD

Paid on delivery
Write a program that will create a text concordance. A text concordance is an alphabetical listing of all of the distinct words that appear in a piece of text along with the position in the text in which they occurr. You are to create an array of 26 binary search trees (one tree for the letter A, one for the letter B, etc.). The position in the text is defined as a pair of integers the page number and the line number within the page. You should maintain a list of positions. After a first reading of the problem, you decide to consider the following data structures as a starting place for holding the information needed for this problem. For this project you must use the classes provided in the STL and on the web site for the class. class listNode { . . . //operations on a listNode? private: int page; int line; } class treeNode { private: string word; list positions; } class concordance { // methods need to include inserting a word // or new line, searching for a word, printing // either a single entry or the whole concordance. private: BST words[26]; }int main() { BST Concordance; string textLine; string word; ifstream inFile // open the textfile - inFile while (![login to view URL]()) { [login to view URL](textLine); while (more_word_on_line) { word = textLine.Find_Next_Word(); if (![login to view URL](word)) [login to view URL] (word,position);; } } }You need to create a test file that contains several pages of text in order to test the page feature. You will need to figure out what is a "page" in the text. Note that for this project, you can define a page size as a number "lines" of lines of text and thus can make a page to be any number of lines of text. A concordance will need to contain at least methods to insert a word (or add a new location to an existing word), search for a word, print either one entry or all of a letter or all of the conoordance, etc.... ## 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 Dev C++ templates header file test file are must use the code which has been given in the documents..
Project ID: 2922550

About the project

3 proposals
Remote project
Active 17 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 $30 USD for this job
User Avatar
See private message.
$25.50 USD in 3 days
5.0 (3 reviews)
1.3
1.3
User Avatar
See private message.
$21.25 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 3 days
0.0 (2 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
4.9
27
Member since Mar 27, 2007

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.