Functional Problem Solving (CSC 151 2016S) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [Remote] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2016S)] [Davis (2013F)] [Rebelsky (2015F)] [Weinman (2014F)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Overview
How would you check the sum?
Try
sum-of-filewith a simpler file.Open the file, copy and paste into a spreadsheet, then sum.
In DrRacket, open the file, insert
(+at the beginning, insert ')' at the end, click "Run"
Why would you check the sum?
Historical evidence suggests that we often get an "off by one" error when doing computations (e.g., we might miss the first or last value).
What's the writeup?
Exercise 6. This is class 44.