Question: Programming: Write a C/C++ program using fork) system call that allows a parent and a child processes to cooperate on whether a given number is
Programming: Write a C/C++ program using fork) system call that allows a parent and a child processes to cooperate on whether a given number is even or odd. The child process should determine whether the number is even process determines whether the number is odd. In each case the input number is 16, the child process should display. 'Child says the number 16 is an even number. number is 5, the parent process should display: "Parent says the number 5 is an odd number. The user of the program echo the number with the proper message. For example, if should read in or input the number. Your program should provide a user's friendly interface. Program naming: LastFirstnamesAssignment3Part2. Example: KouroumaMathieuAssignment3Part2 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 fle and name the zip folder as LastFirstnamesAssignment3Part2. 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 file compression or zipping software. I1I 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. zip the two files. Do NOT use any other 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
Get step-by-step solutions from verified subject matter experts
