Question: Can someone please write this C program using vim and run it on either your Linux Bash shell or Google Cloud shell to make sure

Can someone please write this C program using vim and run it on either your Linux Bash shell or Google Cloud shell to make sure it comes up with the correct output as shown above. Please provide screenshot of terminal to verify that the code does work correctly. I will give thumbs up if everything is right.
Create a new C program orphan.s where a parent creates a child, exits before the child completes (hint: you may put the child into sleep for a short period of time), leaving it an "orphan" process. The orphan is re-parented by init and exits eventually. Make sure your C program compiles and runs. The following is a sample of what the program is supposed to output: ~/3300 $ ass orphan. -o orphan ~/3300 $ ./ orphan (parent): Parent's PID : 3947 (child): Child's PID : 3948 (child): Child's Parent ID : 3947 (parent): Parent exits. Child becomes an orphan ./3300 $ (child): Orphan Child's Parent ID : 1 (init). Orphan is re-parented. (child) : Orphan Child exits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
