Functional Problem Solving (CSC 151 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Overview
Are there some questions and answers in yesterday's eboard?
Yes. I've also copied some of them into the exam.
What interesting questions have you seen in the prologue?
Amazingly, most of the people who have responded to the prologue included "start early" in their list of approaches.
Someone asked how many different tests I wrote for problem 2. My "first pass" set of tests explored eleven different issues, including two kinds of preconditions that might be checked.
Many of you seem overly enamored of
append, particularly for problem 1. If you are only adding one element to the front of a list, you should probably usecons.I'm trying to figure out what
char-drypotis. Maybe auto-correct.I appreciate that at least one of you noted that for both problems 5 and problem 6, you were likely to lose a lot of points if you failed to get the turtle back to the original position and orientation.
Can you try explaining repeat again?
(repeat N FUNCTION VAL)is a way to say "Do(FUNCTION VAL)N times."
(repeat N FUNCTION VAL)is conceptually equivalent to(for-each FUNCTION (make-list N VAL)), but without the extra work of making the list.
Should I use direct or helper recursion for problem 1?
It strikes me that direct recursion is better. I forgot to mention it on Wednesday, but if you're building a new list, and you want the elements mostly in the same order, direct recursion is often the way to go.
Can we see pictures for problem 8?
Done.
Should the procedures in problem 3 check their preconditions?
They need not do so in exams submitted for my section of the course.
_Should the string-rot13 procedure in problem 4 check its preconditions?
Yes.
Can I assume that capital A has collating sequence number 65?
No. The problem is fairly specific that you should not assume any particular collating sequence.
I hear rumors that some students have finished the exam already. Is that really the case?
"This is among the hardest exams I have ever taken. If you don't start it early, you will have no chance of finishing."
Two minutes with your partner
Use (context-set-brush! "2. Hardness 100" 2) and make sure that you
have the brush tool selected.