{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


08-07feb15classstuff - C S 1 0 0 J C l a s s e s s t e p w...

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

View Full Document Right Arrow Icon
1 1 CS100J Classes, stepwise refinement 25 February 2007 Rsrecah on spleilng Aoccdrnig to a rscheearch at Cmabirgde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is that the frsit and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm.Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Miscellaneous points about classes. More on stepwise refinement. CMS allows you to submit an assignment several times. We grade only the last one submitted (but access to all of them). Prelim 7:30-9:00 Thursday, 22 Feb. Review session: 1:00-3:00, Sunday, 18 Feb., in Philips 101 2 Help: Get it now if you need it!! • One-on-one help from TAs. For info, get on the course website and click "Staff-info". • Call Cindy Pakkala 255-8240 for an appointment with Gries. • See a consultant in the ACCEL Green room 2:30 to 11:00 (to 6:00 on Fri-Sat). They aren't very busy now. • Peer tutoring (free). On http://www.engineering.cornell.edu, click on "student services". On the page that comes up, click on "Learning Initiatives (L.I.F.E.) in the left column, upper part. Then, click on "peer tutoring" in the left column. • Take an AEW courses. Ask in Olin 167. 3 Notes on assignment A3 3. Testing for null /** = ”r is this Elephant’s brother". Precondition: r not null. */ public boolean isBrotherOf(Elephant r) { // No need to test for null . It’s the caller’s duty not to have r null. } /** = ”r1 and r2 are not null, and r1 and r2 are siblings */ public static boolean areSiblings(Elephant r1, Elephant r2) { // The result depends on r1, r2 not being null, and the // return expression should somehow include that test.
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}