Functional Problem Solving (CSC 151 2016S) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [Remote] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2016S)] [Davis (2013F)] [Rebelsky (2015F)] [Weinman (2014F)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Overview
Can you help with problem 6?
Use direct recrusion, not helper recursion.
Can you help with problem 4? I'm getting empty strings
Think about an input of
, Sam.
read-charreturns #\, Not an alphanumeric KEEP GOING
read-charreturns #\space Not an alphanumeric KEEP GOING
read-charreturns #\S Alphanumeric Remember the #\S and KEEP GOING
read-charreturns #\a Alphanumeric Remember the #\a and KEEP GOING
read-charreturns #\m Alphanumeric Remember the #\m and KEEP GOING
read-charreturns #. Not an alphanumeric STOP
Are there special cases on problem 4?
read-charreturns #, Not an alphanumeric. If you are at the beginning of the word, stop and return what you just read. If you are at the end of the word, ....
Why did you put $car on the board yesterday?
Ideas for problems 1 and 2.
How do you display what's happening as you go through the kernel in problem 2?
Use something like
(display i) (display " ") (display avec) (newline)
How do I get a procudure to return nothing?
Call
(void)
The postcondition sounds hard on problem 6.
I agree. I'm okay with a less formal one for this problem.
Should we do formal postconditions on 3?
Definitely.
How many parameters should we document on problem 3?
Two.
If we call helpers that use car, cdr, vector-ref, etc, should we
count those?
Certainly.