EE2372  Software Design 1
Spring 2010
TTh 10:30  11:50, CRBL 302
Assignment 2  MATLAB Functions and Program design using flowcharts
Instructor: Dr. Gerardo Rosiles 

Assigned: February 4, 2010
Due Date: February 11, 2010 (by 5 pm)
A hard copy will be required for this homework since it is expected you will create your flowcharts by hand.
1. Design a flowchart to describe a solution for Example 5 in the flowcharting handout.
2. Design a flowchart that describes the process to compute the nth power of x: y = x^{n}.
3. Create a MATLAB function that implements the flowchart design from problem 2. Test your function with a couple of examples.
4. Design a flowchart that describes the process to compute the factorial N! for any nonnegative N. Your flowchart should account for the case 0!=1.
5. Create a MATLAB function that implements the flowchart design from problem 4. Test your function with a couple of examples.
6. Design a flowchart that describes the process to compute the sine of x: y = sine using the Taylor series approximation with five terms. See class power point presentation for the Taylor expansion expression.
 Assume you have available functions power(x,n) and a factorial that you can call from your flowchart.