#Homework Two
Create a child process. The child process generates a random number n between 1 ~ 10, outputs n and it's process ID. The parent process waits for the child process and outputs n. (Use pipes to share n between the parent and child)
Write a program to implement the following: Simulate a bank account containing a savings account and checking account. The user inputs a number n, which is the total number of clients. Each client transfers $10 from the checking account to the savings account. Create a child process for each client. Use shared memory to simulate shared accounts.
Write a program that takes two inputs, a & b from the user. Create two threads, the first will output the sum of i, incremented by one from a to b. The other outputs a * (a + 1) * (a + 2) .... b