Functional Problem Solving (CSC 151 2016S) : EBoards

CSC151.02 2016S, Class 04: Computing with Symbols and Numbers


Overview

Preliminaries

Admin

Upcoming Work:

Extra Credit

Academic

Peer

Future

Miscellaneous

Questions

Help! I don't understand modulo.

That's okay, we'll just use remainder.

Help! I don't understand remainder.

That's what today's lab is.

What problem will we write up today?

I'll let you know with ten minutes to go.

What do we submit?

Your answer to the given problem.

Why do we have quizzes? Is it just because you are sadistic?

Do we submit one homework assignment or two?

Just one!

_What if we don't agree on an answer?

Submit both!

Do we submit one lab writeup or two?

One, if you complete it together in class.

One, if you complete it together outside of class.

Two, if you complete it separately outside of class.

Quiz

Ten minutes.

When you are done, flip over your quiz. You may then read on your cell phone or laptop, or just meditate.

When both you and your partner are done, you may begin the lab.

Lab

ZS says: Rational numbers are numbers that can be expressed as the ratio of two integers.

SR says: Assume that all real numbers are rational, even though that assumption seems irrational.

How should we keep track of what we've done?

Write it down in a notebook.

Copy and paste into an email message (to you and your partner).

Copy and paste into the definitions pane. Select what you've pasted. Choose "Comment out with Semicolons" from under the Racket menu.

What is the lab writeup?

Exercise 2 parts d, e, and f.

Send the email to CSC151-02-grader@grinnell.edu.

For d and f, explain the value of bounded-val based on val (and maybe lower and upper).