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

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

View Full Document Right Arrow Icon
Amar Suhail 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 2 3 , 4 5 6 - < = 120 5 20 120 0 ) ( i i i i f
Image of page 1

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

View Full Document Right Arrow Icon
There are 3 initial possibilities with 2 further choices to make, resulting in 3 * 2 = 6 possibilities.
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern