Find Jobs
Hire Freelancers

I need a C programmer work on Putty platform

$30-250 USD

Completed
Posted over 5 years ago

$30-250 USD

Paid on delivery
Your program should contain the following files: 1. asg2.c. (contains main(), textInit(), textPrint() functions) 2. counts.c (contains the counts()function which will find the number of words and the number of characters) 3. convertCase.c (contains convertCase()function, like you did in lab 6) 4. wordSearch.c (contains searchForWord()function, which has something tricky about it) 5. makefile (Your makefile should name your executable asg2) 6. defs.h (I will provide this file to you.) 7. [login to view URL] (I will provide this file to you.) To copy the two files that I am providing plus a sample [login to view URL] file, navigate to your working directory and type the following: cp /home/chochri/111/1808/PA2/* . Since we will not get through file pointers early enough, you can do the entire program without any file pointers; and to run the program, you should use redirection by typing the following: asg2 < [login to view URL] You will see from the defs.h file provided to you, the following prototypes: int textInit(char allLines[MAX_LINE][MAX_LINE_LEN]); void textPrint(char allLines[MAX_LINE][MAX_LINE_LEN], int numLines); void counts(char allLines[MAX_LINE][MAX_LINE_LEN], int numLines); void convertCase(char allLines[MAX_LINE][MAX_LINE_LEN]); void searchForWord(char allLines[MAX_LINE][MAX_LINE_LEN], int numLines); The first function, textInit() returns an int. This is the function that fills up the array with the text from the file, line by line. Since that function fills up the array line by line, by the end of the loop, the number of lines is known. Return that number, print it out, and use it for some of the other function calls that need that number. textPrint() will print the text back out to the user, when called. Both of these 2 functions should be in the asg2.c file along with main(). ----------------------------------------------- The counts() function should be in the counts.c file. This function, which is passed the array containing the text, will iterate through the array counting the number of words and the number of characters. Those values should be printed out to the user. ----------------------------------------------- The convertCase() function should be in the convertCase.c file. This function, which is passed the array containing the text, will iterate through the array changing the case of each alphabetic character. The textPrint() function should be called after the case is converted so you can see that it worked. You can then call the convertCase() function again to put it back to its original state, if you want. ----------------------------------------------- The searchForWord() function should be in the wordSearch.c file. In this function, the user will be asked to enter a word. Then the array will be iterated through searching for that word and printing out how many times that word appears in the text. Your function should be case insensitive. There is something very tricky when you get to this function, so expect to spend some time trying to figure out how to get your scanf() to work. Sample Output See the [login to view URL] file that was copied over when you copied the other files over
Project ID: 18188248

About the project

3 proposals
Remote project
Active 5 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...I am quite experienced and versatile in C programming for writing console programs using required data structures and algorithms along with string manipulation using arrays and can help you complete the work as per given requirements.
$77 USD in 2 days
4.9 (140 reviews)
6.1
6.1
3 freelancers are bidding on average $144 USD for this job
User Avatar
How are you? Like you see in my profile and portfolios, I have rich experience in C/C++, C#, and Python programming. I would like to discuss with you and get more detail requirements. Please give me your details, then I will provide best solution for you. Thanks
$200 USD in 3 days
4.9 (62 reviews)
7.1
7.1
User Avatar
Hello, I'm Jon, I can provide you perfect work as you looking for . we can discuss more in chat . I will be waiting for your response . I have very great experience about your project , if you want discuss more please send me a text Thank you
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Greenville, United States
5.0
1
Payment method verified
Member since Nov 19, 2018

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.