Notes - 1.24 - EE 312 Notes Sequence Follow Sequence 1 2 3...

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

View Full Document Right Arrow Icon
EE 312 Notes , January 24 2008 Selection o Deciding among alternative executive paths Boolean values stored in variables Tested by program o Using If and Else Statements o Nested and Cascaded If statements o Using Switch Statements o Conditional Operators !! DON T USE Iteration : Looping idoms o , , While do and for statements Relational Operators < less than < Greater than <= Less than or equal to >= greater than or equal to Value of relational expression is either 1 or 0 Have lower precedence in arithmetic operators Equality Conditions == Equality != Inequality Produce 0 or 1 as their result Boolean Conditions Boolean Values true and false do not exist o , - 0 false 1 true
Image of page 1

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

View Full Document Right Arrow Icon
EE 312 Notes , January 24 2008 An integer variable can store a Boolean value o int flag o = ” flag 1 , To improve readability define constants named true and false o # define TRUE 1 o # define FALSE 0 o . . . . . . .
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