Lecture 4 - CNIT 155 Scratch Lecture04 Lab01 Due on Tonight...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CNIT 155 Scratch Lecture04 Lab01 Due on Tonight by 10:00 PM 10 Points Late submissions will not be accepted. Please do NOT upload your Scratch assignments to Scratch web site. Lab02 is posted. Due ---------- Study: Scratch-3, units 1 & 3 Announcements Selection Comparing two things Relational operators : <, >, = If If / else Nested if / else Using random numbers Examples Objectives Is one of the three main coding structures in all high level lanuages: Sequential Selection Repetition Selection is used for decision making in the program. To make a decision, you compare two things, ex: X < 0 X = y Y > 120 Selection Are used to compare two values: Assume x and y are the coordinates of a point on the stage. Operator Meaning Example < Less than x < 0 > Greater than x > y = Equal to x = y Relational operators: < > =...
View Full Document

This note was uploaded on 01/30/2012 for the course CNIT 155 taught by Professor Guityravai during the Spring '12 term at Purdue University-West Lafayette.

Page1 / 16

Lecture 4 - CNIT 155 Scratch Lecture04 Lab01 Due on Tonight...

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

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