Week 10
Week of 10/28
Unit 2
In Class | Homework | |
---|---|---|
Mon | Intro to Recursion | Sophomores (and others if you want a review) - watch the video starting at this link - it should end where you need to stop but if not, stop before Merge Sort |
Tue | Recursion practice & Merge Sort | Watch video on Merge Sort See homework below |
Wed | Work on Practice Problems | Practice Problems |
Thu | If finished with practice, do the Sort PSET and submit when finished | Look over notes to get started on test material |
Fri |
Homework
Factorial - Tuesday night
- Write a program
fact.c
where you have a recursive functionfact
that returns the factorial of any given number enter by the user then prints the answer to the terminal. - Recall that factorial is the product of n * (n - 1) * (n - 2) * … * 1 and is written n!