{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

14-440-127 Lecture 2 Presentation

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

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

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

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

View Full Document
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. b Fail. Let’s not use it.
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

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

View Full Document
Rutgers University SOE 14:440:127 Lecture 2 I hate computers • X = 15; • 0<X<20 – True • X= -15; • -20<X<0 – FALSE!!!! WHY?
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!

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

View Full Document
14:440:127 Lecture 2 Logical Operators – 0 & 1, 1 & 0, 0 & 0 are all 0
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online