COMPSCI 3S Study Guide - Midterm Guide: Car And Cdr, January 5
Document Summary
Professor mike clancy (50 minute open-book exam, 30 total points, 4 problems) Write a function named rating that, given an integer n as its single argument, returns one of the atoms. Bad, good, or ok as follows: situation return value n > 110 good n > 60 and n < 111 ok n < 61 bad. Your function should make as few comparisons as possible. Clearly fill in parentheses and quotes so that the expressions below return the list (march 3 (april 27)) Problem #3 (8pts, 18min) file:///c|/documents%20and%20settings/jason%20raft20spring%201997%20-%20clancy%20-%20midterm%201. htm (1 of 5)1/27/2007 6:25:12 pm. Write a function named wednesday-span that, given as arguments two dates in 1997 in the format described in the "difference between dates" case study, returns the number of wednesdays in the period spanned by the two dates. January 1, 1997 was a wednesday (as december 31 will be).