CS3: Introduction to Symbolic Programming Spring 2006Nate Titterton Lecture 2: Introduction, and Conditionals.

Slides:



Advertisements
Similar presentations
CS3 Fall 2005 Lecture 11: Finish higher order functions Midterm Prep.
Advertisements

1-1 CMPT 225 Data Structures and Programming Instructor: Aaron Hunter Section: E300 Campus: Harbour Centre Semester: Spring 2007.
Slide 1 CS3 Week 8: Recursion. Slide 2 Midterm 1 You did great If you need a re- grade, see the person that graded that question Solutions are available.
Slide 1. Slide 2 Administrivia Mid-semester survey this week (Thur/Fri) –you NEED to do this. Interviews should be starting in a few weeks. I apologize.
CS3 Fall 2005 Lecture 10: More on higher order functions.
Slide 1 Announcements Next Lab is “Catch Up” –Go back over the last two weeks and fill in places you missed We are going to start taking attendance in.
Slide 1 CS3 Fall 2005 Lecture week 13: Introduction to the Big Project.
CS3: Introduction to Symbolic Programming Spring 2006Nate Titterton Lecture 4: "Difference Between Dates" and data abstraction.
Slide 1 Midterm 1 Midterm 1: Feb 28 th (next week). –In the lecture slot, plus 20 minutes (4:10-5:30 pm, 120 Latimer) –Everything we’ve covered, including.
Feb 28More complicated recursions March 7Tree recursion, etc. Number-spelling Miniproject (#2) March 14Higher order procedures March 21Spring Break March.
Slide 1 Announcements Nate's office hours: –Monday, 12-2 –329 Soda Card key issues? (I've been told that any requests made before September 1 st didn't.
CS3: Introduction to Symbolic Programming Spring 2006Nate Titterton Lecture 2: Introduction, and Conditionals.
Midterm Logistics Where? 2050 VLSB When? Monday, 4:10 to 5:40 What to do? –“Review problems” from Thursday/Friday in UCWise. –Two practice exams and solutions.
Slide 1 CS3 Fall 2005 Lecture 9: Higher Order Functions.
CS3 Fall 2005 Lecture week 15. Administrivia The final survey will be up tomorrow: –you NEED to do this to receive a grade on your project! Final: –Saturday,
A-1 © 2000 UW CSE University of Washington Computer Programming I Lecture 1: Overview and Welcome Dr. Martin Dickey University of Washington.
Feb. 27, 2001CSci Clark University1 CSci 250 Software Design & Development Lecture #13 Tuesday, Feb. 27, 2001.
Administrivia Interviews this week: ex-TA Paul Hale Nate's office hours, as usual: Wed 2-4 The final survey will be up by Thursday: –you NEED to do this,
September 7, Concepts of Programming Languages Hongwei Xi Comp. Sci. Dept. Boston University.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 15: Procedures as Arguments.
Slide 1. Slide 2 Administrivia Nate's office hours are Wed, 2-4, in 329 Soda! TA Clint will be handing out a paper survey in class sometime this week.
Introduction to Beginning Algebra. Lab only: KLab only: A,B,C,D,K.
CS212: DATASTRUCTURES Lecture 3: Recursion 1. Lecture Contents 2  The Concept of Recursion  Why recursion?  Factorial – A case study  Content of a.
The Practice of Reading Literature TS English/Winter 2015 WELCOME BACK! GET READY TO READ!
CHEMISTRY 10123/10125 Spring 2007 Instructor: Professor Tracy Hanna Phone: Office: SWR 418
Lecture 1 Page 1 CS 111 Summer 2015 Introduction CS 111 Operating System Principles.
Language Development: The Course Jan. 6, The Course Designed to give students a comprehensive understanding of language development, primarily in.
1 My Experiences as Faculty Member and Researcher Dr. Kalim Qureshi.
CS 241 – Computer Programming II Lab Kalpa Gunaratna –
CS212: DATASTRUCTURES Lecture 3: Recursion 1. Lecture Contents 2  The Concept of Recursion  Why recursion?  Factorial – A case study  Content of a.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
CSC 170 Computing: Science and Creativity
Course Introduction CSE250. Course Overview This course will be difficult Work hard and start early You are adults and I will treat you as such – I won’t.
CPSC 121: Models of Computation Unit 0 Introduction George Tsiknis Based on slides by Patrice Belleville and Steve Wolfman.
Lecture 1 Page 1 CS 111 Summer 2013 Introduction CS 111 Operating System Principles Peter Reiher.
David Evans CS200: Computer Science University of Virginia Computer Science Lecture 3: Rules of Evaluation.
1 Daily Announcements CS 202, Spring 2007 Aaron Bloomfield.
Physics 131 Introduction Instructor: Dr. Michael Chen Office: P9442 Office Hour: MWF. 10:30-11:30am; or by appointment
Welcome to PHY2049 Physics for Engineers and Scientists II Dr. Bindell.
CS1101: Programming Methodology
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.
CS 101-E Announcements. 22 Jan 2007 Office Hours Office Hours Start this week, hours are posted on class website Start this week, hours are posted on.
CS12230 Introduction to Programming Lecture 6-2 –Errors and Exceptions 1.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Event driven software.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Graphical-user interfaces.
Lecture 3: Rules of Evaluation CS150: Computer Science
COMP9024: Data Structures and Algorithms Course Outline Hui Wu Session 1, 2016
All materials copyright UMBC unless otherwise noted CMSC201 Computer Science I for Majors Lecture 02 – Algorithmic Thinking.
CompSci 101 Introduction to Computer Science Sept 13, 2016 Prof. Rodger compsci101 fall161.
CMSC201 Computer Science I for Majors Lecture 19 – Recursion
CMSC201 Computer Science I for Majors Lecture 02 – Algorithmic Thinking Prof. Katherine Gibson Based on slides by Shawn Lupoli and Max Morawski at UMBC.
General Information Course Id: COSC4368 Artificial Intelligence Programming Time: Mondays and Wednesdays 1:00 PM – 2:30 PM Professor: Ricardo Vilalta.
University of Washington Computer Programming I
Data Structures Algorithms: (Slides to be Adopted from Goodrich and aligned with Weiss' book) Instructor: Ganesh Ramakrishnan
iGCSE Walking-Talking Mock Exam
FINAL EXAM INFORMATION
FINAL EXAM INFORMATION
CompSci 101 Introduction to Computer Science
CS 456/656 – Computer Networks
WELCOME TO TOWSON UNIVERSITY
Announcements Nate’s office hours Card key problems?
Tips for Success in Mathematics
CS 2530 Intermediate Computing Dr. Schafer
Analysis of Algorithms
CS148 Introduction to Programming II
Announcements HW #1 - graded HW and solutions returned now
Homework Reading Machine Projects Labs
Dr. David Matuszek Spring, 2003
GAGLIANO’S TOP TEN Reasons why STATISTICS is DIFFERENT than ANY OTHER MATH class you have ever taken!
AME Spring Lecture 11 - Thrust and aircraft range
Presentation transcript:

CS3: Introduction to Symbolic Programming Spring 2006Nate Titterton Lecture 2: Introduction, and Conditionals

Announcements Nate's office hours: -Wednesday, Soda Tue/Wed is a Catch-up day. -Use this day to catch up! That is, go back over the last two weeks and fill in places you missed -You will all be ready to go on Thur/Fri, right? Our reader is Jonathan Chan -He will be stopping by the lab in the next few weeks

Schedule 2 Jan Lecture: Introduction, Conditionals Lab: Conditionals 3 Jan 30-Feb 4 Lecture: Case Studies Reading: Difference between Dates Lab: Work with Difference between Dates 4 Feb 6-10 Lecture: Data abstraction in DbD Lab: Miniproject I 5 Feb Lecture: Introduction to Recursion Lab: Recursion 6 Feb Lecture: Lab: Recursion II 7 Feb 27-Mar 3 Lecture: Midterm 1 Lab: Recursion III

A video resource Weiner lecture archives The "course" is an earlier CS3 -Different emphasis; early lectures may work better than later ones -Very different lab experience -Same book

Some nice comments "In English, when something is in quotes we think about it differently. Same in scheme" "In order to remember how to parenthesize a cond statement... think of each statement as an if without the 'if' "

Testing There is much more to programming than writing code -Testing is crucial, and an emphasis of this course -Analysis -Debugging -Maintenance. -"Design"

Write an answer procedure. Write a procedure named answer that, given a sentence that represents a question, returns a simple answer to that question. (A question's last word ends with a question mark.) If the argument sentence is not a question, answer should merely return the argument unchanged. -Given ( am i...? ), answer should return ( you are...). -Given ( are you...? ), answer should return ( i am...). -Given ( some-other-word i... ? ), answer should return ( you some-other-word...). -Given ( some-other-word you... ? ), answer should return ( i some-other-word...). -Given any other question, answer should return the result of replacing the question mark by a period.

(define (walk light city cops-present) (cond ((equal? city 'berkeley) 'strut) ((equal? light 'green) 'go) ((equal? light 'not-working) 'go-if-clear) ((and (equal? light 'flashing-red) cops-present) 'wait) ((equal? light 'flashing-red) 'hurry) (else 'just-stand-there))) Conditionals

You are writing big programs now. But, what can’t you do yet?

What does “understand a program” mean?

Case Studies Reading!? A case study: -starts with a problem statement -ends with a solution -in between, a …story… (narrative) -How a program comes to be You will write “day-span”, which calculates the number of days between two dates in a year

You need to read this The lab will cover the case study through a variety of activities. -This will culminate in the first “mini-project” We just may base exam questions on it It will make you a better programmer! 4 out of 5 educational researchers say so.

Some important points There is a large "dead-end" in this text -Like occur in many programming projects -Good "style" helps minimize the impacts of these There is (often) a difference between good algorithms and between human thinking