Find Jobs
Hire Freelancers

index of words in a text document

$25-30 USD

Concluído
Publicado há aproximadamente 21 anos

$25-30 USD

Pago na entrega
Write a program to generate an index of words in a text document. The index consists of each word in the text and, for each word, the line number of each line that the word occurs in. Assumptions 1. The text will fit in computer memory. 2. The line numbers in the text start with 1. 3. Each word in the text consists of letters only ??" some or all may be in upper case. 4. Each word in the text is followed by zero or more punctuation symbols followed by any number of blanks, and end of line markers. Output The program should provide the following facilities. Display the index on the screen Save the index to a file Allow the user to delete a specified word from the index Find and display a specified word (and its associated line numbers) Words should be printed in alphabetical order and in lower case letters. Every word should be followed by the line numbers of the lines in which it occurs. The line numbers should be separated by commas. Implementation In this assignment you must use binary search tree (or AVL tree) to store the words in computer memory. The line numbers for each word should be stored in a queue. (I.e., the elements stored in the tree will contain a word plus a queue of line numbers.) Design your program in object oriented style as much as possible. The preferred coding style in both C++ and Java is to begin all identifiers with a lower case letter, with the exception of class names and user defined type names. When an identifier consists of multiple words, the first letter is in lower case but each successive word begins with an upper case letter (e.g., totalNum). Class names begin with an upper case letter. The function names begin with a lower case letter. Symbolic constants should be in upper case letters with multiple words separated by underscores (MAX_NUM). Each member function (method) should be documented with a comment stating the purpose of the function, its pre-conditions and post-conditions, ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done and psudo code. 2) must be ready by 6 of May 2003 3) must use either Borland C++ v5.02 or Microsoft VisualC++v 6.0 4)follow all requiremnt and specifications as per published and attached ## Platform windows 2000
ID do Projeto: 2930942

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 21 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
See private message.
$8,40 USD em 14 dias
4,2 (111 avaliações)
4,4
4,4
2 freelancers estão ofertando em média $17 USD for esse trabalho
Avatar do Usuário
See private message.
$25,50 USD em 14 dias
5,0 (29 avaliações)
4,7
4,7

Sobre o cliente

Bandeira do(a) AUSTRALIA
Australia
4,9
12
Membro desde nov. 24, 2002

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.