EBoard 06: Booleans and conditionals

This class will be recorded! Its use is limited to members of the class. Please do not share with others.

Approximate overview

  • Administrative stuff [~10 min]
  • Q&A [~10 min]
  • Quiz [~5 min]
  • Lab [~60 min]

Administrative stuff

Notes and News

  • Evening tutoring will be available 3-5 p.m. Sundays and 8-10 p.m. Sundays through Thursdays in the tutoring channel on the CS team.
  • We will not always finish every lab during lab time. You have three basic options if you don’t finish a lab during lab time.
    • Arrange another time to meet with your partner.
    • Finish on your own (and cite your partner).
    • Finish with someone else (and cite your partners).
  • Should I try to group you by general time zone? (Can I poll in Teams?)
  • Let me know if you want to be added to the csstudents mailing list. You’ll get lots of fun email. Information about events. Information about internships/jobs. The occasional bit of extra info. Notes from the SEPC. Stuff like that.
  • The mentors will send out a poll on mentor session times.

On lab submissions

  • Use the starter code! I want to see the headers and everything.
  • Match the file name! At some point, we’ll be running automated tests, and the file name is important.
  • Credit your partner!
  • Don’t use as many exclamation points as I do!

Some tips

  • A tip: If your partner finds your shared window hard to read or you don’t have enough bandwidth, try shrinking the window. It will expand on your partner’s side (and use less bandwidth).
  • A tip: Esc-P in the interactions pane brings up the last command.
    • You can it it multiple times to go back through the history of commands.
    • “P” for “Previous”
    • If you’ve gone too far back, you can use Esc-N.
  • A tip: Save early and often
    • Dr. Racket might crash
    • You might type something in the interactions pane that causes DrRacket to go on forever and not be able to be stopped.
    • Obligatory joke. (I apologize to anyone offended by the joke.)

Upcoming activities

Attend (or watch recording) and send a one-paragraph reflection.

  • Noon, TODAY: Convocation! (+1 token)
  • 5pm, TODAY: Learn about the CS major (+1 token)
  • Noon, Friday, Strengthening Community in Extraordinary times (+1 token)
  • 5pm, Monday, 9 November 2020, Education Picnic (+1 token)

Upcoming work

I’ll try to include this list of upcoming work each day. Your colleagues have created a Discord Channel that they will demo for you (if I remember).

  • Reading writeup for today (due 8:00 a.m. this morning; a few minutes ago!)
  • Mini-project 1 redo (due next Wednesday at 10:30 p.m. CST)
  • Mini-project 2 (due next Wednesday at 10:30 p.m. CST)
  • Writeup for today’s lab on conditionals (due Friday 8:00 a.m. on Gradescope; ideally before the end of class today)
  • Readings for Friday (responses to questions due Friday at 8 a.m. on Gradescope)
  • Today’s quiz: Yes, it will involve code.
  • Tomorrow’s quiz: Conditionals or predicates

Q&A

Where can I find the recording of convo (if it is recorded)?

I’ll let you know when I hear.

Do you add people after you submit?

Yes. Sam will try to fix. Damn.

Do we always submit a writeup.

Yes.

Can you do a conditional example?

Sure.

; (nickname name) -> string ; name: string ; Finds the nickname for name, if we have one. (define nickname (lambda (name) (cond [(equal? name “John”) “Awesome Mentor Gouwar”] [(equal? name “Alexis”) “Alex”] [(equal? name “Madeline”) “Maddy”] [else name])))

Quiz

  • Bring up readings (and yesterday’s lab) in your browser.
  • Open DrRacket.
  • Go to the Quiz in Gradescope.
  • Five minutes (more or less).

Lab

  • Please set up your groups in the “Lab Sessions” channel.
  • Please name your groups as designated below.
  1. Sam (well, Sam using a computer program he wrote) assigns groups.
  2. First person in the group goes to the Lab Sessions channel, clicks the camera (or something equivalent) and then “Meet Now”. Please get the channel right. We won’t see you in other channels.
  3. Add a subject. “Group #: Names”, such as “Group 1: SamR & JohnG” Please get the group name right. It makes it much easier for us.
  4. Click “Meet Now”.
  5. Invite the other members of the group.
  6. Other members of the group join.
  7. Discuss/work/whatever.

Debrief

Perhaps we’ll have time today.