Functional Problem Solving (CSC 151 2015F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] [Remote Access]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2015F)] [Davis (2013F)] [Rebelsky (2015S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Overview
Thanks very much to the students who provided these questions!
Can you give an example of a subroutine from the nut butter and preserve algorithm?
Sure. There was an "open a jar" algorithm that I could have applied to both the nut butter jar and the preserve jar. Given that the preserve jar is glass, I don't think it would have been a good idea to use the "hit the top of the jar on the counter" algorithm. Here's an alternative. (Yes, you can probably find flaws.)
To open a jar
grasp the body of the jar with your non-dominant hand holding the top of the jar upward.
grasp the lid of the jar with your dominant hand
if the jar appears to be a screw-top jar, rotate the lid of the jar counter-clockwise while continuing to hold the bottom steady. Keep rotating the lid counter-clockwise until it separates from the jar.
if the jar appears to be a pop-top jar, pull the lid upward, applying force at the edge of the lid while holding the body of the jar steady
if the jar appears to be neither a screw-top jar nor a pop-top jar, report an inability to open the jar and stop.
Can you give examples of the where parts of an algorithm appear in the nut butter and preserve algorithm?
What is the difference between basic values and parameters?
Parameters name the inputs to the algorithms. "jar of fruit-based substance"
Basic values are the kinds of values we can provide, such as "jar of Smuckers(r) raspberry preserves"
In math, we think about things like f(x). x is a parameter to the function f. Numbers, like 42, are basic values.
Why can't I use square?
squareis not defined by default in DrRacket. That was a trick to help you remember that not every natural operation is defined. (Don't worry, we'll define it soon.)
What are the shortcuts that Erin, Zachary, and Sam provided to folks?
In the interactions pane, control-uparrow brings back the previous command for you to edit
If you select with the left mouse button, you can (usually) paste with the middle mouse button.
Where can I do work for this class?
For the first few weeks of class, please work on Noyce 3rd.
After that, we will provide a few additional options
Use a virtual machine.
Connect from your computer to ours. (Harder, sometimes slower, but gives the same files.)
If you run Linux, you can install the class software (I think).
But working on Noyce 3rd is always good.
Do we need to define something before we use it?
Yes, in general.
How did you know that the square root was correct?
Email an answer to the following question to rebelsky@grinnell.edu.
What did you see as the learning outcomes for exercise 3?
Due Friday.
Submit as a joint assignment by sending an email with all of your names..
Subject: CSC 151 Lab Writeup Day 3 (Z. Livingston Seagull and E. Gotshot)
Please substitute your own names.