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
Do you really mean (- 1 color) on problem 6?
Yes. Think about using 3/4 for
color.
Do you have recommendations for values to try for the first parameter in problem 6?
I'd try 0, 1/4, 1/3, 1/2, 2/3, and 1.
I've written a computation that gives me 0 for one set of numbers and 1 for another set of numbers. I really want to get 1 for the first set of numbers and 0 for the second set. Do you have any tips?
(- 1 x)
Does that have anything to do with the (- 1 color) above?
I don't think so.
What is a unique song?
Don't count the second (or third, or fourth, or forty-second) instance of a song.
Two versions of the song are considered different. E.g., Venus in Furs on The Velvet Underground and Nico sounds very different than Venus in Furs on Live at End Cole Avenue.
In what format should we write helper procedures?
Preferred
;;; Procedure:
;;; helper
;;; Parameters:
;;; x, a number
;;; Purpose:
;;; Add 1 to x
;;; Produces:
;;; whatever, a number
(define helper
(lambda (x)
(+ 1 x)))
Acceptable
; Add 1 to x
(define helper
(lambda (x)
(+ 1 x)))
Do we have to run formal tests?
No. Just try it out. [Citation: "Just try it out." is a phrase used by ZG in class.]
What do you want for citations to class readings and such?
Rebelsky, Samuel (2016). Academic Honesty. Grinnell College Department of Computer Science. Available at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC151/2016S//handouts/academic-honesty.html (Last modified 14 January 2016; Visited 10 January 2016).
But I will accept
Web page at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC151/2016S//handouts/academic-honesty.html
On problem 6, can our code crash and burn if the three are not all different.
Yes. You can crash. You can return 3. You can return 1. You can return 42. You can return a different number. The three numbers being different is an important precondition.
Can I use irgb-add with compose?
Yes, provided you also use it with section.
Writeup: 4a and 4b