CSC 151.01, Class 15: Displaying data
Overview
- Preliminaries
- Notes and news
- Upcoming work
- Extra credit
- Questions
- Lab
- Debrief
News / Etc.
- New partners. Today’s partners are your homework partners.
- Please make sure to return your computer cards to the jar.
- I’m very sorry about ending class early on Monday. My addled brain suggested that class ended at 20 past.
- A number of you had questions for me Monday afternoon and Tuesday that were also clearly questions on Monday morning. Please ask those questions in class. You were not alone in having issues.
- When you send me email about homework assignments, please carbon-copy your partner.
- http://pioneers.grinnell.edu/news/2017/9/26/womens-tennis-cvrkota-becomes-3rd-pioneer-to-be-named-mwc-performer-of-the-week-this-season.aspx
- I am discontinuing the flash card assignments. I have not had time to check them over. Those who have done them for the first four weeks will receive a modicum of extra credit.
- Quiz topics
- Conditionals
- Displaying data
- Documentation, revisited
Upcoming Work
- Quiz Friday!
- Writeup for class 15 due Friday at 10:30 p.m.
- Exercises 5 and 6
- To: csc151-01-grader@grinnell.edu
- Subject: CSC 151.01 Writeup 15 (YOUR NAMES)
- Assignment 5 due Tuesday at 10:30 p.m.
- Not yet released. Sorry.
- Today’s class partners are your homework partners.
- Reading for Friday’s class: Preconditions
- Already released.
Extra credit (Academic/Artistic)
- Convocation, Thursday: Wilson Okello on “Living in the Wake of Crisis”
- Google Tech Interview Thingy today at 4pm in 3821.
- CS Table, Tuesday: Tapia.
- CS Extras, Thursday week: ???
Extra credit (Peer)
- Women’s soccer at 4:30 p.m.
- Volleyball at 7:00 p.m.
Extra Credit (Misc)
None at the moment.
Other Good Things
- GHS Homecoming - Downtown on Thursday at 4pmish.
Questions
- When are we getting our quizzes back?
- Monday?
- Which Monday?
- Um … Monday after break?
- Maybe next Monday
- Maybe a Monday after you graduate
- From what I could tell in the reading, we normally write
- something like
(plot (points (list ..))). What’s up with - the
(plot (list (points ...)))? - If you want to plot multiple sets of things, you put them together into a list.
Lab
- Should I replace
###with three digits? - Yes!
- Should I use different sets of digits each time?
- Yes!
- What does that sublist procedure look like?
- Something like the following
(define sublist (lambda (lst start finish) (drop (take lst finish) start))) - How can I use that to get just the latitude and longitude?
- Section it with 1 and 3?
- Write a variant that just extracts the latitude and longitude?
(define extract-latlon (lambda (lst) ...)) - Could I make a list of latitudes and a list of longitudes and then join them together?
- Sure. Didn’t you do something like that on the last homework?
(map list (code-for-making-list-of-latitudes) (code-for-making-...))
What other shapes are available?
'dot 'point 'pixel
'plus 'times 'asterisk
'5asterisk 'odot 'oplus
'otimes 'oasterisk 'o5asterisk
'circle 'square 'diamond
'triangle 'fullcircle 'fullsquare
'fulldiamond 'fulltriangle 'triangleup
'triangledown 'triangleleft 'triangleright
'fulltriangleup 'fulltriangledown 'fulltriangleleft
'fulltriangleright 'rightarrow 'leftarrow
'uparrow 'downarrow '4star
'5star '6star '7star
'8star 'full4star 'full5star
'full6star 'full7star 'full8star
'circle1 'circle2 'circle3
'circle4 'circle5 'circle6
'circle7 'circle8 'bullet
'fullcircle1 'fullcircle2 'fullcircle3
'fullcircle4 'fullcircle5 'fullcircle6
'fullcircle7 'fullcircle8)
- If I select a section of my graph, what happens?
- You should zoom in.
- How do I determine if a character is alphabetic?
char-alphabetic?- How do I determine if a character is a digit?
char-numeric?- How do I determine if a character is whitespace?
char-whitespace?
Debrief
There did not seem to be a need to debrief.