PLEASE HELP ME WITH THE FOLLOWING ASSIGNMENT:
I BOUGHT ANOTHER SOLUTION FROM ANOTHER TUTOR, BUT I DON’T KNOW HOW TO RUN IT. IT IS AN OLD SOLUTION AND I THINK TUTOR IS NON-ACTIVE AND DOESN’T REPLAY MY MESSAGES. IT IS EITHER WRONG OR I AM DOING SOMETHING WRONG IN UNIX SO I NEED A TUTORIAL ON HOW IT WORKS.
AFTER TUTOR IS ASSIGNED, I WILL SEND LINK TO SAID BOUGHT SOLUTION Here is link to old solution bought from:https://studyacer.com/question/c-assignment-pipe-programming-in-linux-423636 —————————————————————————
Write a calculator program to compute math equations using pipes – program needs to fork() as many times as needed and use pipes to communicate to children. Equation specified in the first line of the data file will determine this setup. Once the setup is done, parent task reads the data from the data file and pumps into various pipes in parallel and results come back to main task using another pipe. add, subtract, multiply & divide are the available tools inhttp://www.speedyshare.com/NEn7B/proj-files.rar(click slow download) – you can copy them to your working directory to use with your project. All tasks use standard input stream 0 to read the first argument, use stream 3 to read 2nd argument and use standard output stream 1 for output. Main task uses the pipe stream numbers directly since it needs standard I/O streams to communicate with the user. Here is an example: configuration diagram for computing “a – b * c” looks like the following. Note that the whole equation is processed left to right. No need to worry about operator precedence since that is not our focus here.
Sample data file content: a – b * c 30 20 2 500 10 20 90 1 10 Usage: calculator < data.txt Expected output: 20 9800 890
Parent task can close the pipes when eof is reached for input file. When eof is detected in the pipe that brings the results in, parent task can quit.
Watch this 8 minute video – it can help you with debugging. I have made sum, subtract, divide and multiply tools to display both input and output values using standard error stream. http://www.youtube.com/watch?v=4kwiLSGRoM0
Previous answers to this question
This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.
Get The Answer C++ Assignment Pipe programming in Linux
PLEASE HELP ME WITH THE FOLLOWING ASSIGNMENT:
I BOUGHT ANOTHER SOLUTION FROM ANOTHER TUTOR, BUT I DON’T KNOW HOW TO RUN IT. IT IS AN OLD SOLUTION AND I THINK TUTOR IS NON-ACTIVE AND DOESN’T REPLAY MY MESSAGES. IT IS EITHER WRONG OR I AM DOING SOMETHING WRONG IN UNIX SO I NEED A TUTORIAL ON HOW IT WORKS.
AFTER TUTOR IS ASSIGNED, I WILL SEND LINK TO SAID BOUGHT SOLUTION Here is link to old solution bought from:https://studyacer.com/question/c-assignment-pipe-programming-in-linux-423636 —————————————————————————
Write a calculator program to compute math equations using pipes – program needs to fork() as many times as needed and use pipes to communicate to children. Equation specified in the first line of the data file will determine this setup. Once the setup is done, parent task reads the data from the data file and pumps into various pipes in parallel and results come back to main task using another pipe. add, subtract, multiply & divide are the available tools inhttp://www.speedyshare.com/NEn7B/proj-files.rar(click slow download) – you can copy them to your working directory to use with your project. All tasks use standard input stream 0 to read the first argument, use stream 3 to read 2nd argument and use standard output stream 1 for output. Main task uses the pipe stream numbers directly since it needs standard I/O streams to communicate with the user. Here is an example: configuration diagram for computing “a – b * c” looks like the following. Note that the whole equation is processed left to right. No need to worry about operator precedence since that is not our focus here.
Sample data file content: a – b * c 30 20 2 500 10 20 90 1 10 Usage: calculator < data.txt Expected output: 20 9800 890
Parent task can close the pipes when eof is reached for input file. When eof is detected in the pipe that brings the results in, parent task can quit.
Watch this 8 minute video – it can help you with debugging. I have made sum, subtract, divide and multiply tools to display both input and output values using standard error stream. http://www.youtube.com/watch?v=4kwiLSGRoM0
Previous answers to this question
This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.
Get The Answer