{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

BEE 151 Lecture X

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

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

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) If Ws>cut_in & Ws<cut_out Wp(x) = (16/54) (Ap(Ws(x))^3)/1000 Else Wp(x) = 0 End %if End %for

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

View Full Document
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)
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern