Find Jobs
Hire Freelancers

Need help fixing my c program that compares different articles based on how difficult they are to read

$10-30 USD

Closed
Posted over 3 years ago

$10-30 USD

Paid on delivery
C program - write a program that compares different articles based on how difficult they are to read. One (very simplistic) measure of the difficulty of reading a particular text is the average word length. A document with a larger average word length is more difficult. Write a C program that does the following: • Accepts a space-separated list of filenames from the command line • Computes the average word length of each document • Prints a message stating which document is the most difficult and which document is the least difficult A "word" for our purposes is any whitespace-delimited group of characters. This is done to make the task simpler and will obviously include things that we do not usually consider part of a word. Your program should treat any of "cats,", "cat's", and "cats." as a word with 5 characters. To be parsed by the grader, your output should be formatted exactly as Most difficult document: [filename] Least difficult document: [filename] For example: Most difficult document: [login to view URL] Least difficult document: [login to view URL] If only one document is passed, then it is both the least difficult and most difficult. For file I/O, you should use the C functions fopen, fclose, and fscanf, fgets, or similar. You will also be graded on the quality of your code. Some considerations: • Your code must be free of memory leaks. • You must have a comment at the top stating, at a minimum, your name, the assignment due date, and a brief description of what the program does. • Avoid hard-coded constants. Make use of the C preprocessor instead. (Use your judgement on this one, though. For example, 0 and 1 generally show up in code without being an issue.) • Your code should notice when an error happens and fail gracefully. For example, the user may pass a filename that does not exist. ive written the code but it doesn't seem to be working when I pass it thru my professors tests I was wondering if someone could see where I went wrong
Project ID: 27569608

About the project

7 proposals
Remote project
Active 3 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
7 freelancers are bidding on average $21 USD for this job
User Avatar
Hello iam youssef saidi from tunisia , i am ready to help you with the best price . i have 2+ years experience in c. please award me the project so that we can discuss more further. let's share details and start right now Thanks!
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi there, I have 5+ years of experience in pure C-Prograaming. I have experience in implementing advanced algorithms and Data-Structures in pure C language. I am an active Competitive programmer on various coding platforms. I can deliver this project within 24 hours as i have woked on plenty of such File I/O related problems while writting optimized codes. I can deliver the code within 24 hours after executing all your tests.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I have industrial working experience of more that 17 years in C/C++. Your problem set is very easy and can be corrected in few hours for perfect solution to pass your prof requirements. Looking forward to chat you in details for the same. Warm Regards Amit
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
hi, I am a expert C/C++ programming, i think i can help you this problem. please contact me to get more information thanks
$15 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I can totally help you with your problem. I'm also a student doing C projects and I'm already done with mine. My recent project is to create a replica of Minesweeper game where I also create some FILE pointers for me to record some text to a file. My project is prospected to be a part of the best MP in my class. Right now, I really want to help you in your project so that I can have extra money because I really need it for my education.
$15 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
1. Academic writing 2. Article/content/blog writing 3. Product description writing 4. Transcription writing 5. Logo designing 6. Autocad 7. Audio recording/voice recording 8. Picture illustration 9. SQL 10. Web Development and designing 11. Book designing
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ROMANIA
Băilești, Romania
5.0
1
Member since Mar 8, 2020

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.