Question
Due: Wednesday, February 21, 2018 @ 11:55 PM on Moodle. ---------------------------------------------------------------------------------------------------------- Programming: Write a C/C++ program using fork() system call that allows a parent and
Due: Wednesday, February 21, 2018 @ 11:55 PM on Moodle.
----------------------------------------------------------------------------------------------------------
Programming:
Write a C/C++ program using fork() system call that allows a parent and a child processes to cooperate on determining whether a given number is even or odd. The child process should determine whether the number is even and the parent process determines whether the number is odd. In each case echo the number with the proper message. For example, if the input number is 16, the child process should display: "Child says the number 16 is an even number." If the input number is 5, the parent process should display: "Parent says the number 5 is an odd number." The user of the program should read in or input the number. Your program should provide a users friendly interface.
Program naming: LaniqueBartlettAssignment3Part2
Note: the extension .c or .cpp should be part of your program name by default.
Submission: Submit your program original source code and its executable file. Using Windows default zipping or file compression, zip or compress your source code and its executable file and name the zip folder as LaniqueBartlettAssignment3Part22. DO NOT submit a Word or PDF version of your program. There should not be space in the name. Keep in mind that you can only submit one time; therefore, you must zip the two files. Do NOT use any other file compression or zipping software. If I am not able to unzip your zip folder, because you will not be allowed to resubmit, you get a zero on this part of the assignment. You are allowed only to upload and submit a zip folder with the .zip extension.
Finally, make sure that you submit and confirm/accept your submission. If you do not confirm your submission, your assignment submission will be kept in the "draft" mode. Therefore, it will be considered late once the assignment is overdue. As a result, you will get a zero on this part of the assignment. Ask me if you do not understand what I mean.
DO NOT wait the last minutes to work on your assignment or for questions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started