{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

BEE 151 Lecture X

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

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

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern