Find Jobs
Hire Freelancers

A Phone Book

$30-5000 USD

Selesai
Dibuat sekitar 21 tahun yang lalu

$30-5000 USD

Dibayar ketika dikirim
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 Proyek: 2913108

Tentang proyek

9 proposal
Proyek remot
Aktif 21 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$5 USD dalam 14 hari
4,2 (111 ulasan)
4,4
4,4
9 freelancer menawar dengan rata-rata $27 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$11,05 USD dalam 14 hari
5,0 (53 ulasan)
5,1
5,1
Avatar Pengguna
See private message.
$28,05 USD dalam 14 hari
4,9 (79 ulasan)
4,7
4,7
Avatar Pengguna
See private message.
$23,80 USD dalam 14 hari
5,0 (19 ulasan)
3,2
3,2
Avatar Pengguna
See private message.
$11,05 USD dalam 14 hari
4,7 (17 ulasan)
3,0
3,0
Avatar Pengguna
See private message.
$29,75 USD dalam 14 hari
4,5 (15 ulasan)
2,7
2,7
Avatar Pengguna
See private message.
$21,25 USD dalam 14 hari
5,0 (8 ulasan)
2,3
2,3
Avatar Pengguna
See private message.
$46,75 USD dalam 14 hari
5,0 (8 ulasan)
2,0
2,0
Avatar Pengguna
See private message.
$63,75 USD dalam 14 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
United States
0,0
0
Anggota sejak Feb 22, 2003

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.