Lecture 7 Slides - Iterator Review + Conditional Expressions

1 of 4

Lecture 7

Conditional Expressions + MQ 5

2 of 4

Logistics and Week Ahead

Mini-Quiz 5 today

  • Poll Everywhere for students in-class
  • Canvas Quiz for students completing remotely
    • (due by the start of the day of our next class -> 11:59pm on Sunday)
  • Ethics Module 2 - Accessibility (for some) - Due Sunday night at 11:59pm
  • Exercise 2 - Due tonight at 11:59pm (late submission deadline of Sunday)

Next Week:

For some - Ethics Module 3 - Accountability

Monday - Composite Data (Ex 3 Posted)

Wednesday - Manipulating Composite Data (Pre-Recorded + MQ6) + Tutorial 3

Friday - Q1 Review (MQ 7)

3 of 4

Reminders!

Automated Type Checks on Submissions

  • Helps identify whether you have submitted a response and that those responses are the correct Type of data
  • Results are posted as a comment on your Canvas submission no more than 30 minutes after submission
  • You can re-submit if there’s a problem (we’ll always grade your latest submission with its timestamp)

Academic Honesty

  • We have already had a number of issues with submissions that have been reported.
  • In Tutorials it’s fine to help each other on your programs while in the classroom, but your Exercises must be completed on your own. You should not look at anyone else’s code for an Exercise.
  • I post lots of hints on edSTEM – we have tons of office hours.

4 of 4

The iterated-overlay function

;; iterated-overlay: (number -> image) number -> image

;; Makes a series of pictures using function, then overlays them.

(iterated-overlay picture-making-function count)

(iterated-underlay picture-making-function count)

(iterated-above picture-making-function count)

(iterated-beside picture-making-function count)

  • Calls picture-making-function repeatedly with the input of the current value of our counter!
  • Calls it count times, with inputs starting at 0 and going up to count - 1
  • Overlays/underlays/aboves/besides all the pictures