problem set 1

problem set 1 - Amar Suhail Fundamentals of Computer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Fundamentals of Computer Science Problem Set 1 9/9/2006 Problem 1 Formula: 2 * 5 . 2 ) ( t t f = Table: Code: Console: (define (travel-distance t) > (travel-distance 10) (* 2.5 (* t t))) 250 > (travel-distance 15) 562.5 Problem 2 At a blood sugar level of 130 she would need 1 dose of insulin and at a level of 180 she would need 4 doses. Table: Formula: Problem 3 Table: Formula: H H f 25 . 8 50 ) ( + = Code: Console: (define (boys-pay H) > (boys-pay 100) (+ 50 (* 8.25 H))) 875 > (boys-pay 132) 1139 > (boys-pay 141) 1213.25 Problem 4 There are 6 combinations: after t 0 1 2 3 4 … 10 … 15 seconds it has traveled 0.0 2.5 10.0 22.5 40.0 … ?? … ?? meters guess 0.0 2.5 10.0 22.5 40.0 … 250 562.5 meters B.S.L. 100 110 120 130 140 150 160 170 180 190 200 … 290 insulin dose 0 0 1 1 2 2 3 3 4 4 5 … 9 time 0 1 2 … 5 … 10 … 100 … 132 … 141 Hours pay 50 58.25 66.50 … 91.25 … 132.50 … 875.00 1139.00 1213.25 $ Mr. Mrs. Dr. : 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/26/2008 for the course CS 211 taught by Professor Matthias.f during the Fall '07 term at Northeastern.

Page1 / 2

problem set 1 - Amar Suhail Fundamentals of Computer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online