Find Jobs
Hire Freelancers

Simple dictionary spell check in C

$10-30 USD

Completed
Posted about 4 years ago

$10-30 USD

Paid on delivery
Write a program in C to check a file containing words in each line against another file. "[login to view URL]" (ATTACHED). The program should reach in a dictionary of words ([login to view URL]) and store it in an array. The program should then read words, one at a time, from the user-given input file. Each word should be compared to the dictionary. If an exact match is found, the program should continue to the next word. If no exact match is found, then the program should begin searching for suitable suggestions for replacement. The search for replacement words should work like this. Let N be the length of the original input word, minus 1. Starting with that value of N, the program should search for any exact matches of the first N characters of the input word with any words in the dictionary, and add them to a suggestion list. Following that, the program should search for any exact matches of an N substring anywhere inside the input word, as compared to anywhere inside a dictionary word. Decrease the value of N by 1, and repeat. This process should stop when 10 words have been suggested, or when N reaches 0. The program should provide the list of suggestions to the user through a simple text menu. One option in that menu should be to keep the original word. Either upon verifying that the original word is found in the dictionary, or upon the user selecting a replacement, the program should write the appropriate word to an output file. The program should discover the names of both the input file and the output file from command line arguments.
Project ID: 23962158

About the project

1 proposal
Remote project
Active 4 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
Awarded to:
User Avatar
hi , it's an easy task for me and i can do it as required and on time . tanks in advance .
$30 USD in 7 days
5.0 (10 reviews)
3.5
3.5

About the client

Flag of JAMAICA
Jamaica
0.0
0
Payment method verified
Member since Jul 23, 2017

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.