{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

10-07feb22recursion

# 10-07feb22recursion - CS100J 22 Feb 2006 More on Recursion...

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

1 1 CS100J 22 Feb 2006 More on Recursion My first job was working in an orange juice factory, but I got canned: couldn't concentrate. Then I worked in the woods as a lumberjack, but I just couldn't hack it, so they gave me the axe. After that I tried to be a tailor, but I just wasn't suited for it. Mainly because it was a so-so job. Next I tried working in a muffler factory but that was exhausting. I worked as a pilot but eventually got grounded for taking off too much. Then I tried teaching but I couldn't make the grade. We derive recursive functions and look at execution of recursive calls. Study Sect 15.1, p. 415. Watch activity 15-2.1 on the CD. In DrJava, write and test as many of the self-review exercises as you can (disregard those that deal with arrays). Get more of these from the course website Prelim tonight in Olin 155 at 7:30 PM. 2 Geometry test 3 Recursive functions /** = a copy of s in which s[0..1] are swapped, s[2..3] are swapped, s[3..4] are swapped, etc. */ public static String swapAdjacent(String s) /** = b c . Precondition: c

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

10-07feb22recursion - CS100J 22 Feb 2006 More on Recursion...

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

View Full Document
Ask a homework question - tutors are online