Functional Problem Solving (CSC 151 2016S) : EBoards

CSC151.02 2016S, Class 06: Transforming Colors


Overview

Preliminaries

Admin

Reminders

Upcoming Work:

Extra Credit

If you know of other events, please suggest them! (I might not always agree, but it never hurts to ask.)

Academic

Peer

Regular

Questions from Sam

What does round do?

Makes things the same shape as Sam. NO!

Rounds to the closest number.

Above 0.5 rounds to higher number

Below 0.5 rounds to lower number

At 0.5 rounds to the lower number

(round 2.6) => 3 (round 2.4) => 2 (round -2.6) => -3 (round -2.4) => -2 (round 2.5) => 2 or 3

Whoops! What about inexact numbers

(round 5/2) => 2 or 3 (correct answer: 2) (round 7/2) => 3 or 4 (correct answer: 4) (round -5/2) => -2 (round -7/2) => -4

The magic Google says ... "It rounds to even when it is x and a half."

Good Grinnell students ask why?

Questions

Lab

Writeup: Exercise 5

Reminder: It's a good idea to do (or at least read through) all of the problems.