Introduction to Computer Science (section 6)

Monday, February 25, 2013

Review question solution

I uploaded a possible solution to the second midterm review question, MidtermReview2.java.

If you're curious, func() in the first question returns the (k+2)th Fibonacci number or -1 when k is not positive, but you don't need to have seen that to work through the loops and get an answer.

Posted by Madeleine Thompson at 11:22 PM
Newer Post Older Post Home

Pages

  • Home
  • Course Information
  • Lecture Notes
  • Homework 2
  • Homework 3
  • Not Homework 4
  • Homework 5
  • Homework 6
  • Homework 7
  • Homework 8
  • Homework 9
  • Homework 10
  • Practice Final
  • Instructor's site

Blog Archive

  • ▼  2013 (44)
    • ►  May (5)
    • ►  April (6)
    • ►  March (6)
    • ▼  February (22)
      • Review question solution
      • Homework 3 solutions
      • Midterm practice questions
      • Subversion down again
      • No class Monday
      • Homework 2 solutions
      • Homework 2 marks
      • Asking questions over email
      • Homework 3
      • Teaching assistant lab hours
      • "svn checkout" versus "svn update"
      • Final exam May 15 at 8am
      • Homework 2 posted
      • Another Subversion server outage (Update: back up)
      • Fixing a filename with the wrong case in Subversion
      • Subversion Demo #2 error fixed
      • Code Conventions for Java
      • New to Vim?
      • Editing, propedit, and commit
      • Bonus office hours this Monday, 9–9:30am
      • Subversion server outage (Update: back up!)
      • To-do list for week one
    • ►  January (5)
Simple theme. Powered by Blogger.