Find Jobs
Hire Freelancers

A Phone Book

$30-5000 USD

Concluído
Publicado há aproximadamente 21 anos

$30-5000 USD

Pago na entrega
The format of the file is: int key;char lastName[20];char firstName[20]; char phone[20]; where key is a social security number (no dashes) of the person. Create an array of 100 entries as formatted above and initialize all integer elements to zero and string elements to spaces. Read each record on the [login to view URL] file and as each is read, use modulo-division hashing algorithm to determine the index in the array where the record will be stored. Before storing the record, check to see if it will have a collision with an existing array element. If there is a collision, print a message that indicates a collision has occurred and what the key values involved are. Then resolve the collision using the key-offset method described in the text. As you resolve the collision, keep in mind that another collision may occur and you will need to print the collision message each time that happens. Once you have processed the entire file, print the index and contents of the non-zero elements of the array. Place all of these displays into a file called directory Do not actually display them on the console. Next display a menu for the user to select from the following options: Enter one of the following options: 1. Search the directory by Name 2. Search the directory by SSN 3. Quit If the user selects option 1, prompt the user to enter a last name. Search the array using an unordered sequential search and display all information for all people that match that last name. If the user selects option 2, prompt the user to enter a social security number. Use the hashing method to find that person and display all information for that [login to view URL] the average number of comparisons executed to perform each of the searches and display the results. ## Deliverables I would like the program to be done in Visual C++. ## Platform Windows 98, ME, 2000, XP Visual C++
ID do Projeto: 2913108

Sobre o projeto

9 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.
$5 USD em 14 dias
4,2 (111 avaliações)
4,4
4,4
9 freelancers estão ofertando em média $27 USD for esse trabalho
Avatar do Usuário
See private message.
$11,05 USD em 14 dias
5,0 (53 avaliações)
5,1
5,1
Avatar do Usuário
See private message.
$28,05 USD em 14 dias
4,9 (79 avaliações)
4,7
4,7
Avatar do Usuário
See private message.
$23,80 USD em 14 dias
5,0 (19 avaliações)
3,2
3,2
Avatar do Usuário
See private message.
$11,05 USD em 14 dias
4,7 (17 avaliações)
3,0
3,0
Avatar do Usuário
See private message.
$29,75 USD em 14 dias
4,5 (15 avaliações)
2,7
2,7
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
5,0 (8 avaliações)
2,3
2,3
Avatar do Usuário
See private message.
$46,75 USD em 14 dias
5,0 (8 avaliações)
2,0
2,0
Avatar do Usuário
See private message.
$63,75 USD em 14 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
0,0
0
Membro desde fev. 22, 2003

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.