{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

assn1 - CS 135 Fall 2008 Byron Weber Becker Ian Goldberg...

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

View Full Document Right Arrow Icon
CS 135 Fall 2008 Byron Weber Becker, Ian Goldberg, Brad Lushman, Daniel Roche, Troy Vasiga Assignment 1 Due Wednesday, September 17, 10:30am Files to submit: temp.ss , simple-plot.ss , waves.ss , grades.ss For this and all subsequent assignments the solutions you submit must be entirely your own work. Do not look up either full or partial solutions on the Internet or in printed sources. Please read the course Web page for more information on assignment policies and how to submit your work. Make sure to follow the style guide (available on the Web page or in the printed presentation handouts package) when preparing your submissions. Language level : Beginning Student. Each assignment will start with a list of warmup exercises. You don’t need to submit these, but we strongly advise you to do them to practice concepts discussed in lectures before doing the assignment. This week’s warmup exercises are HtDP exercises 2.4.1, 2.4.2, 2.4.3, 2.4.4, 3.3.2, 3.3.3, 3.3.4. Here are the assignment questions you need to submit. Questions 2 and through 3 require the graphing teachpack, which you can Add from the Language menu in DrScheme. You will need read the documentation which is available at: http://docs.plt-scheme.org/teachpack/graphing.html . Your submissions should not contain any images (though your code will produce images when it is run). 1. Do exercise 2.2.1 from the textbook, “How To Design Programs” (HtDP). To convert a Fahren- heit temperature to Celsius, subtract 32 and multiply by 5 / 9 . The third part of the exercise, involving files, is optional. Then do exercise 3.3.6. Place your Scheme functions in the file temp.ss . 2. Write the function tenth-sq which consumes a numeric value x and produces 1 10 x 2 . Using the graphing.ss teachpack to graph this function using the colour blue, and also graph the line y = x in red on the same image. Place this solution in simple-plot.ss . 3. Write various functions to produce the following image using the graphing.ss teachpack. (Note: the colours, at the maximum points from left-to-right are red, blue, black and orange). Place your solution in the file waves.ss . CS 135 – Fall 2008 Assignment 1 1
Image of page 1

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

View Full Document Right Arrow Icon
4. Write a function final-CS135-grade that consumes five integers: 1. the participatation grade, 2. the assignments grade, 3. the first midterm grade, 4. the second midterm grade, and 5. final exam grade.
Image of page 2
Image of page 3
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