Class14 - Class meeting #14 Monday, October 11th GEEN 1300...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 GEEN 1300 Introduction to Engineering Computing Class meeting #14 Monday, October 11 th Excel & Visual Basic for Applications (VBA) Algorithm development: bisection Spreadsheet prototyping: bisection 1 VBA programming: bisection Debugging and documentation Homework #6 due Wednesday Count-controlled Iteration For . . . Next index = star Y For index = start To limit Step increment loop code Next index Example: if Step increment is left out, a step of 1 is default index = start index = index + increment index passes limit ? loop code N sum = 0 For i = 1 to n sum = sum + x(i) Next i Here, x is an array with n elements and 2 Used frequently with arrays x(i) refers to the i th element of the array
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Count-controlled Iteration For . . . Next Example  n i1 nn1 i 2  Validate 3 Algorithm Design Statement of the objective Written step-wise description of the method Flowchart the method Prototyping Develop an Excel spreadsheet to test the method and demonstrate its effectiveness & limitations
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2010 for the course CHEN 1300 at Colorado.

Page1 / 8

Class14 - Class meeting #14 Monday, October 11th GEEN 1300...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online