system programming

System Programming CSCI7645.XX - Assignment 4 Worth - 5 points Due by March 9, 2017 See attached C++ program . Assume all fork() system calls are successful . 1. How many lines of output will be produced? 2. Is it possible for “ho ” to be output before “hee ”? why 3. How many processes will be generated? Draw a tree diagram and attached to your homework 4. Modify the program to do the following a) Only the first child process to print “ha ” b) Only the parent process (the process on the root) to print “waooow ” c) The final child process must exit from the system without doing anything