Find Jobs
Hire Freelancers

I need a C programmer work on Putty platform

$30-250 USD

已完成
已发布超过 5 年前

$30-250 USD

货到付款
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
项目 ID: 18188248

关于此项目

3提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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 在2天之内
4.9 (140条评论)
6.1
6.1
3威客以平均价$144 USD来参与此工作竞价
用户头像
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 在3天之内
4.9 (62条评论)
7.1
7.1
用户头像
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 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Greenville, United States
5.0
1
付款方式已验证
会员自11月 19, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。