Introduction to Symbolic Programming

Introduction to Symbolic Programming

Announcements CS3L: z Mini-Project Assigned Today Introduction to z Due Monday at 11:59 pm Symbolic Programming z Midterm Thursday 9:10-11:10 z Back-up lab materials Lecture 6: z Homework 5 due tonight at 11:59 pm Mini-Project Prep Summer 2008 Colleen Lewis [email protected] Case Study Review – Draw a Diagram of Each Mini-Project z Draw a diagram of Version 1 and 2 of the z Day Span isn’t helpful because it doesn’t case study work across years (or centuries) z Work with a partner z You’re going to write century-day-span z Be prepared to explain your diagram z Works for years 1900 to 2999 How would we test century-day-span examples century-day-span? z (century-day-span '(january 3 1990) '(january 9 1990)) 7 z Jan 4 1999 Feb 28 2001 (crossing over leap year) z Jan 1 1900 Dec 31 2999 (test extremes!) z (century-day-span '(march 30 1989) '(february 2 1990)) 310 z Didn’t cross over leap year but has feb z Test days in month to make sure # are in range Test z (century-day-span '(january 1 1984) '(january 1 1985)) 367 Helper procedures z Test two days in same month of same year z Consecutive days z (century-day-span '(january 1 2001) '(january 1 2005)) 1462 z General day span – helper procedure testing! z Two days in the same year crossing over feb 29th z Test over multiple leap years z Test ove mult. Years w/ no leap years 1 Helper Procedures Tips on the project z dates in the same month; z Work with a partner z dates in the same year in different months; z dates in different years, where the month of the first date z Exchange contact information precedes the month of the second date; z Set up a time to work z dates in different years, where the month of the first date follows the month of the second date; z Work on it before the midterm z dates in different years that do not span a "leap day"; z dates in different years that span a "leap day"; z It will be good practice z dates that span the leap day in the year 2000; z Next week is going to be intense you should be z dates that span the non-leap day in the year 1900; 100% focused on Monday’s new stuff! z dates in different years with the first date in a leap year; z dates in different years with the second date in a leap year; z dates in different years with both dates in a leap year. Pair Programming z What should it look like? z Split in the middle and not talk (BAD) z One person doesn’t do any work (BAD) z One person doesn’t let the other person work (BAD) z Write good comments!!! (GOOD) z Split up who does helper procedures (GOOD) z Check each other’s procedures (GOOD) z Good placeholder names 2.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us