14-440-127 Lecture 2 Presentation

14-440-127 Lecture 2 Presentation - 14:440:127 Introduction...

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

View Full Document Right Arrow Icon
14:440:127 Introduction to Computers for Engineers Lecture 2 Lecturer: Blase E. Ur Recitation Instructor: Tianming Li Recitation Instructor: Ke Xu Recitation Instructor: Brian Viezbicke Recitation Instructor: Mingliang Wang PLEASE TAKE LECTURE 2 NOTES AS YOU ENTER THE ROOM
Background image of page 1

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

View Full DocumentRight Arrow Icon
Rutgers University SOE 14:440:127 Lecture 2 Reminders / Updates Check Sakai for online copies of the syllabus, lecture notes, recitation problem sets. Check Sakai after the {following} lecture for the answers to the recitation problems. If you don’t finish the recitation problems in recitation, do them as homework (in addition to any other problems we assign). We will sometimes check the combined set of problems for completeness. Check Sakai for updated Office Hours. rutgersmatlab@gmail.com b Fail. Let’s not use it.
Background image of page 2
Rutgers University SOE 14:440:127 Lecture 2 Relational Operators Redux > Greater Than? < Less Than? >= Greater Than or Equal To? <= Less Than or Equal To? == Equal To? ~= Not Equal To? if(x = 5) % setting a variable should actually be if(x == 5) % comparing x and 5
Background image of page 3

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

View Full DocumentRight Arrow Icon
Rutgers University SOE 14:440:127 Lecture 2 I hate computers • X = 15; • 0<X<20 – True • X= -15; • -20<X<0 – FALSE!!!! WHY?
Background image of page 4
Rutgers University SOE 14:440:127 Lecture 2 I hate computers • X= -15; • -20<X<0 – Is -20 < -15? • TRUE = 1 – Is 1 < 0 ? • NO! • Order of Operations, one operator at a time, means that this command doesn’t do what we might think it will!
Background image of page 5

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

View Full DocumentRight Arrow Icon
14:440:127 Lecture 2 Logical Operators – 0 & 1, 1 & 0, 0 & 0 are all 0
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/29/2012 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.

Page1 / 27

14-440-127 Lecture 2 Presentation - 14:440:127 Introduction...

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

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