1 / 10

Introducing Lists

Sept 6 th , 2019. Introducing Lists. Agenda. Preliminaries (8:35-8:45) Quiz (8:45-8:55) List Discussion (8:55-9:10) Lab Time Wrap-up (9:45-9:50). Preliminaries (8:35-8:45). Peer Support Events?. Preliminaries (8:35-8:45). Evening Tutors Classrooms open for working

yates
Download Presentation

Introducing Lists

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sept 6th, 2019 Introducing Lists

  2. Agenda • Preliminaries (8:35-8:45) • Quiz (8:45-8:55) • List Discussion (8:55-9:10) • Lab Time • Wrap-up (9:45-9:50)

  3. Preliminaries (8:35-8:45) • Peer Support Events?

  4. Preliminaries (8:35-8:45) • Evening Tutors • Classrooms open for working • You must communicate with your lab partner about the plan if you don’t finish the write up in class. You can submit the lab writeup separately, but you should agree to that together • No using cellphones during class!

  5. Quiz (8:35-8:45)

  6. Lists (8:55-9:10) • What will each expression produce? • (list 1 2 3) • '(1 2 3) • ‘(1 2 3) • '(1 2 3) • (list (+ 1 2) (+ 3 4)) • '(3 7) • ‘((+ 1 2) (+ 3 4)) • '((+ 1 2) (+ 3 4))

  7. Lists (8:55-9:10) • (iota 5) • '(0 1 2 3 4) • (map increment (list 3 7 14 15 22 41)) • '(4 8 15 16 23 42) • (reduce * (iota 5)) • 0 • (reduce - (list 10 1 3 5 1)) • It depends! • (map iota (iota 4)) • '(() (0) (0 1) (0 1 2))

  8. Lab Time (9:10-9:45) • When working on the lab… • Remember to save your answers for each exercise so that you can submit the required ones

  9. Lab Time (9:10-9:45) • Lab Writeup: • Simple Lists Exercise 3: Send your scheme code for each part as well as a brief explanation in response to part d • Remember to follow the format specified in the syllabus!

  10. Wrap-up (9:45-9:50) • Email your lab partner the files you created together • Assignment 2, don’t forget to meet with your partner to work on it! • Read for Monday’s class • Submit lab writeup by Monday at 10:30pm

More Related