Skip to main content

CSC 151.01, Class 06: Transforming RGB Colors

Overview

  • Preliminaries
    • Notes and news
    • Upcoming work
    • Extra credit
    • Questions
  • Lab.
  • Debrief.

News / Etc.

  • Continue partners!
  • I still have some HW1s left to grade (and two quizzes). Apologies.
  • I hope to get through preliminaries quickly so that you have most of class for lab.
  • I sometimes forget to orient the windows so the folks in the back of the room can read. Please tell me if I need to move things up!

Reminders

  • We have tutors available Sunday through Thursday evening from 7-10 p.m. in Science 3813/15.
  • Starting this week, we will have mentor sessions on Wednesday and Thursday evenings from 8:00-9:00 p.m. in the CS Commons. Wednesdays will be more Q&A, Thursdays will include sample quizzes.
  • I run review sessions on Thursdays at 9am in this room.

Upcoming Work

Extra credit (Academic/Artistic)

  • CS Table, Tuesday, TODAY, noon (or a little after), middle PDR: Planning for the semester.
  • Women-in-CS discussion of Hidden Figures, TODAY, 7pm, CS Commons.
  • Thursday extras, Thursday, 4:15 p.m., Science 3821: LaTeX.

Extra credit (Misc)

  • Any one of the activities relating to last Friday’s executive order.
    • See VP Connor’s email
    • Thursday at 7pm in Saints Rest

Extra credit (Peer)

  • Swimming and Diving meet 1pm on Saturday.
  • Ritalin Test Squad Improv Troupe is looking for new members and will be holding try outs this weekend. Auditions will be on Saturday Feb 4th, 1-3 pm in The Wall (Bucksbaum 152).

Good things to do

  • Care for the people around you.
  • More of the activities relating to last Friday’s executive order.
  • Women’s BBall tonight at 5:30 p.m.
  • Divest rally Friday at 3pm in ARH 302
  • Give blood!

Questions

When are lab writeups due?

  • Monday lab -> Wednesday
  • Tuesday lab -> Friday
  • Wednesday lab -> Friday
  • Friday lab -> Monday
  • They should appear on the schedule.

Why does composition start from the right and go to the left?

(compose f g) is suppose to be like the mathematical fog.

(fog)(x) = f(g(x)) in traditional mathematical notation.

((o f g) x) = (f (g x)) in Scheme notation.

Why can Scheme understand 6/5 but not (6/5)?

The first one is one of the ways we can denote numbers. (This is an exact number.)

Parentheses signify “Apply a procedure!”

Lab

It’s only week two! Where’s that flurry of energy and activity?

Some notes

  • Yes, it’s okay to copy and paste the code from the lab rather than retyping it.
  • Yes, it’s okay to retype it, too, if you think you learn from retyping.
  • I may have the direction wrong on the rotation.
  • Remember: Save as you go.

Writeup

Write up exercise 6 from the lab on transforming RGB colors.

Send your solution to csc151-01-grader@grinnell.edu.

Title your email CSC 151.01 Writeup for Class 6 (YOUR NAMES).

Include your answers to exercise 6 in the body of your email. For 6b, show the code (and output) you used to check your answer to part 6a.

Debrief

None; We decided it was better for students to have time to work!