Newbie question on exec,fork, wait,pipe C

Hello everybody.I want to make clear that i am not going to ask from anybody to build my asignement but i have a big problem. I can't seem to find anywhere ONE good example on C about what i am trying to do:wall:.I think it is simple. All i ask is one example, even a link is fine.
So, i want to make a program (Grandfather.c) which will run 2 new existing programs (Father.c,Son.c). Father.c needs to make some calculations.He wakes up Son.c.He sends him two numbers and Son.c adds them and sends back the result.After this Son.c sleeps.
So,to sum up:
1.Grandfother.c runs the 2 programs
2.Son.c builds the pipes and falls asleep
3.Father.c wakes his son and sends him 2 numbers and falls asleep
4.Son.c adds the numbers, sends them back and falls asleep again

I have found several examples that use functions in one program,but i don't understand how to establish connection in 3 programs.Thnak you in advance!!

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.