A5_ENGR215_F08

A5_ENGR215_F08 - at beginning of period Test your function...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Engineering ENGR 215 College of San Mateo L. Demsetz Assignment 5: Programming Assigned: September 11, 2008 Due: September 23, 2008 Please read Chapter 4 in the text and review the handout Programming in MATLAB . Please use the usual format for submitting the assignment, with subject yourname_ENGR215_A5. Submit work as .m file attachments. Be sure to include your name and other relevant information in a comment block at/near the top of each file. 1. Use MATLAB as described in Problems 1 (pages 188-189), 3 (page 189), and 12 (page 191). Just do the work; nothing to turn in. 2. Write a MATLAB function to solve Problem 10 on page 190. In addition to the requested information, your function should return your net increase in wealth (value of stock held at end of period – cash out to purchase stock + cash in from selling stock – value of stock held
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: at beginning of period). Test your function with the numerical values given in the problem and paste your results in a comment block at the end of your file. Submit your code as A5P2.m. Be sure to include appropriate comments so that a user typing >> help A5P2 will know how to use the program. 3. Write and test the program described in Problem 16 on page 191. Submit your code as A5P3.m (again, with appropriate comments). Paste as comments at the end of the file evidence that you have tested the code thoroughly. 4. Write and test the program described in Problem 30 on page 197. Use at least one while loop in your program. Submit your code as A5P4.m (with appropriate comments). Paste as comments at the end of the file evidence that you have tested the code thoroughly. Remember, you can…...
View Full Document

This document was uploaded on 10/07/2008.

Ask a homework question - tutors are online