Child pages
  • Assignment 2
Skip to end of metadata
Go to start of metadata

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
Engineering Annex 304
Office hours: MTThF 1:30-2:30
Phone: 747-7956
e-mail: grosiles@utep.edu

 


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 = xn.


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 non-negative 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(error) 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(thumbs down) that you can call from your flowchart.



  • No labels