L3post - Announcements Project 1(P1 due Thurs 9/8 at 11pm...

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

View Full Document Right Arrow Icon
Announcements: Project 1 (P1) due Thurs, 9/8, at 11pm Pay attention to Academic Integrity You can see any TA for help, not just your discussion TA Consulting Matlab consultants at ACCEL Green Rm (Carpenter Hall 2 nd fl. computing facility) 5-10pm Sunday to Thursday Just added CS1112? Tell your discussion TA to add you in CS1112 CMS (and tell CS1110 to drop your from their CMS) Piazza – “Q & A system” for all students in CS1112. Use it for clarification only—do not ask (answer) homework questions and do not give hints on homework. Will be monitored by TAs. Available tomorrow.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Previous Lecture (and lab): Variables & assignment Built-in functions Input & output Good programming style (meaningful variable names; use comments) Today’s Lecture: Branching (conditional statements)
Background image of page 2
Lecture 3 3 Quick review Variable A named memory space to store a value Assignment operator: = Let x be a variable that has a value. To give variable y the same value as x, which statement below should you write? x = y or y = x Script (program) A sequence of statements saved in an m-file ; (semi-colon) Suppresses printing of the result of assignment statement
Background image of page 3

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

View Full DocumentRight Arrow Icon
Lecture 3 4 So far, all the statements in our scripts are executed in order We do not have a way to specify that some statements should be executed only under some condition We need a new language construct…
Background image of page 4
Lecture 3 5 Consider the quadratic function q ( x ) = x 2 + bx + c on the interval [ L , R ] : Is the function strictly increasing in [ L , R ] ?
Background image of page 5

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

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

Page1 / 32

L3post - Announcements Project 1(P1 due Thurs 9/8 at 11pm...

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