Please sit with your partner from Monday’s class.
Warning! You are being recorded (and transcribed) (provided the technology is working correctly).
Approximate overview
From the latest reading responses:
(define (shorter? str1 str2)
(< (string-length str1) (string-length str2)))
While this is valid Scheme, it is not valid Scamper. That makes me question how someone would come up with this answer. (The obvious reason is “AI”.)
Scholarly
Artistic/Cultural
About “In C”
When Terry Riley brought 10 musicians into a New York City studio in 1968 to record an album-length version of his composition “In C”, he couldn’t have known how profoundly he was about to affect the course of contemporary music, both popular and experimental. Minimalist music was around before In C, but this was the album that really put that approach on the map. Influenced by everything from Indian music to John Cage’s chance-oriented pieces, this modal marvel is a cyclical composition consisting of short, repetitive phrases that each player chooses spontaneously from the score, creating a hypnotic interlocking of lines based around a central idea. Piano, vibes, marimba, woodwinds, horns, and viola meld together in a slowly shifting, pointillist landscape. When the album was released, composers like Steve Reich and Philip Glass were following minimalist paths as well, but they were still pretty far underground. In C not only broke through to avant-garde ears, it proved profoundly influential to adventurous rock and jazz artists.
Multicultural
Peer
Musical, theatric, sporting, academic, and similar events involving this section’s students are welcome.
Wellness
Misc
These do not earn tokens, but are worth your consideration.
It’s a “bribe for asking questions” day.
What happens if I fail to indent my code on a mini-project?
You will get a not-yet-satisfactory grade.
Can I submit a lab writeup or reading response that is missing?
You may not submit lab writeups or reading responses more than 48 hours after they are due. The “the first six don’t count” rule is intended to accommodate missing ones.
If you are already missing six or more, we should talk.
How many chances to I get to make up MP1?
First redo is free.
Second redo costs a token.
I hope we won’t need a third redo.
How do I sign up for the CS picnic?
Deadline was Monday. We provide the food. (There’s probably enough if a few of you show up without having RSVP’d.)
Is there a separate place to submit MP1 redo?
Yes.
I tried running the code in part 1c of the mini project following the rounding procedure given in the instructions but kept getting an error that said “expected rgb component, received number”. How do I fix this?
It’s a problem with how the
rgbfunction works in some versions of Scamper. You may have to use(min 255 (* 32 (round (/ 255 32))))>
The starter code has cut. What should I do about that?
Option 1: Grab new starter code.
Option 2: Let me know where the problem is and I’ll send you the replacement code.
Post additional questions on Teams.
Can we nest cond expressions within if, or, and and? (And can we
nest those within each other?)
Yes. However, it can become hard to read if you do too much nesting.
Can we still use cut operation and composition with conditionals?
You cannot use composition or the section operations (
l-sandr-s) with conditionals, since the conditional operations aren’t functions. However, you can use the cut operation (with#and%) with conditionals. I’d prefer that you didn’t.
Why does (and) with no arguments give #t, and (or) with no arguments
give #f?
Answer 1 :
andreturns#fif any of its arguments are#f. In(and), none of the arguments are#f. Similarly,orreturns#tif all of its parameters are#t. None of its parameters are#t.
Answer 2: Computer scientists are weird.
Answer 3: It’s easier to implement them that way.
If you finish early, please do the extra problems.
If you finish those, too, split up and start working on MP2.