BEE 151 Lecture X - 9/19 BEE 151 Lecture X-Prelim 2...

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

View Full Document Right Arrow Icon
9/19 BEE 151 Lecture X-Prelim 2 Switch(switch expression) Case (case expression 1) Stmt 1 Stmt 2 Etc Case (CaseExpression2) Stmt 3 Stmt 4 Etc Otherwise Stmt 5 Stmt 6 Etc End % switch Ex. Write a statement to have the user input a value between 1 and 10 use a switch statement to determine if the value is even or odd. Loop constructs 1. Condition controlled (while loop) 2. Count controlled (for loop) 9/24/07 Wrapping up FOR LOOPS A loop to calculate Wp from Ws array on element xelement For x = 1: length(Ws) Wp(x) = (16/54) (Ap(Ws(x))^3)/1000 End Consider parameters For x = 1: length(Ws) Wp(x) = (16/54) (Ap(Ws(x))^3)/1000 Else Wp(x) = 0 End %if End %for
Background image of page 1

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

View Full DocumentRight Arrow Icon
Ze Heart Right atrium left atrium Right ventricle left ventricle Blood flow rates (oxygen) are altered by increased/decreased heart rate. HW3 calculate HR for a population HR = CO/SV CO = cardiac output SV = stroke volume CO = COmax / (1 + [K/Pra-Prao]) blood flow out COmax = max cardiac output(param) K = conversion factor (constant)
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 03/31/2008 for the course BEE 1510 taught by Professor Staff during the Winter '05 term at Cornell University (Engineering School).

Page1 / 4

BEE 151 Lecture X - 9/19 BEE 151 Lecture X-Prelim 2...

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