Overview
next-char
procedure)Written or electronic flash cards?
Send me electronic. Choose whatever is better for your studying for yourself.
For problem 2A, should we generate our own sentence or use the one you gave us?
Use the one we gave you.
For problem 2B, should we generate our own templates or use the ones you gave us?
It’s up to you. The ones we gave you should be good starting points.
For problem 2C, should we generate our own template?
Definitely.
It appears you screwed up some of the Scheme in the assignment.
Yup. Let me know and I’ll fix it.
How do we get the libraries on our personal computers?
Start DrRacket
File > Install Package
Enter “https://github.com/grinnell-cs/loudhum.git” (without the quotation marks).
Click Install* or **Update (whichever appears).
When the Close button becomes available, click it.
Background: I have heard from some of you and from some mentors that it does not seem that you are always treating your partners with respect.
You have different backgrounds in this material and, irrespective of background, some of you may “catch on” to an idea more quickly than your partners.
That does not give you permission to treat your partner as less able, less valuable, or less competent than you are.
Everyone in this classroom got into Grinnell. Everyone in this classroom is capable of doing the material and can contribute usefully to work. We already had a class code of conduct on the agenda for Friday, but we need to do some work on those issues today.
Note: Traditionally, the pair programming in CSC 151 is considered a strength of the course. (There are issues, but we resolve them quickly.)
I have handed many of you cards with statements on them. I will ask you to read those aloud.
If you would prefer a partner of the same gender expression on HW4 (or labs) email me and I’ll make sure that happens.
Why do we round x.5 toward even numbers?
It’s a tradition from statistics. Suppose we have a lot of numbers ending in .5 and we’ve made the decision to round all of them. If we round all of them up, the average of our data set is now going to be higher. If we round all of them down, the average of our data set is going to be lower. If we round them “toward the even”, the average of our data set should be similar. (This depends on our distribution.)
Why are the numerator and denominator of 1.2 so strange?
Racket represents inexact numbers (with a decimal point) as fractions whose denominator is a power of 2, more or less. 1.2 or 6/5, doesn’t have a denominator which is a power of 2, so it does the best it can.
If we used a denominator of 4, we’d probably write 5/4 (1.25, rather than 1.2).
If we used a denominator of 8, we’d probably use 10/8 (1.25 again), which is better than 9/8 (1.125).
If we used a denominator of 16, we’d probably use 19/16 (1.1875), which seems a bit closer.
Which numbers should we use?
I forgot: Quizzes returned. You can check the second set of problems on your own. Let me know if you have questions on the grading.