a) Open a text file containing a text in lowercase letters, without punctuation marks
b) Read the file word by word and computes
i. the number of words in the file
ii. the length of each word in the file
iii. the total number of characters (spaces excluded), i.e., the sum of the word lengths
iv. the average word length
Tasks o be implemented:
c) writes the filename and the above statistics into a variable whose type is a
program in C comparefilesthat performs the following actions
a. Two child processes are created
i. One process prompts the users to type thefile name of a file containing a text in lowercase
letters, without punctuation marks and executes the first code already described
(you don’t need to create a separate executable)
This process will send the content of the variable with all the statistics to the parent process
through an unnamed pipe. Then,the process prompts the user again for a new filename.
If the usertypes“exit” then it should stop prompting the user, and in cascade all process should
ii. The other process reads an unnamed pipe where the statistics of each file are written by
the parent process, and appends these data on an output file
b. The parent processreads from the pipe written by the first child process and writes
to the pipe read by the second child process
you will find attached two files to start with, you can choose the file you want.
deadline is before midenight or tomorrow if it is necessary.
16 freelanceri licitează în medie 34€ pentru acest proiect
Hi, I'm an expert in C programming and using pipe and fork. I'm sure that I can easily do this project for you. We can have a chat about it. Thanks.
Hello I have read your project details carefully. I have many years experience in C/C++. I can help you to do it. Thanks.
Language : ----- C++, C#, Python, Qt, Matlab, Java, VB----- Skill : High and low desktop application Project reversing, Multi-threading, System management Machine learning, Deep learning Im Mai multe
Hello! I saw your project details and very interested in it. I have rich experience in developing C/C++ programs for +8 years. If you hire me, you will receive satisfied result. I can work right now and full time for y Mai multe
Hi, I'm Jimy. I'm an expert in C language, I have a lot of experience developing this type of algorithmic problems. I can do it for you by tomorrow morning, fully functional and with a clear and efficient code. Please Mai multe
I am a professional programmer with 15+ years experience in Linux programming. I have done many projects in area of process management using pipe. Of course, I make the code using C language. I can make the code to hel Mai multe
No problem! I have read your description carefully and very interested in your project. I am working on Desktop App with C/C++&C# for 7years. I think i can do it perfectly. If you hire me, you will get cool results. i Mai multe
Hi, I've been working as a software engineer for many years. I'm sure that I can easily do this project for you. If you hire me, you will receive satisfied results. If you make a deposit and hire it by 7pm (my time zo Mai multe
Hi, client. I read your project proposal carefully. I have 7+years experience in this field. My skill is as following: - C , C++, Matlab, Python - Web , Mobile design including serval frameworks - Data processing in Mai multe
Hello, I read carefully your description. I'm c/c++ programming expert. We can discuss detail opinion via chat. Thank you for your post.
I have algorithm data analysis background, I am a great coder with optimized code, optimized design, completed requirements. My linkedin account: [login to view URL] I know that I am new to free Mai multe
Hello! How are you? My name is Victor Bozelli Alvarez and I have a degree in Computer Science from Mackenzie Presbyterian University. I am graduated in iOS Development from Apple Developer Academy. I have extensive pr Mai multe