Computer Science 202
Introduction to Programming
Fall 2013, The College of Saint Rose
Lecture 19: More Methods
Date: Thursday, November 7, 2013
Agenda
- Announcements
- Exam 2 in one week
- practice exam questions out
- we can review on Tuesday
- topics up to loops, not methods
- Looking ahead to our final programming project: you will choose
your own topic, so start thinking about what you might want to do -
details next week
- More methods
Lecture 19 Assignment
Due at the start of class, Tuesday, November 12.
Please submit answers to these questions
in Submission
Box under "LA19" by the start of our next
class. We will discuss these questions at the start of class, so no
late submissions are accepted. Please be sure that your name is
clearly indicated in all submissions.
- Write a method that takes two numbers are parameters that
represent the width and height of a rectangle, and returns the area
of the rectangle. (3 points)
- Write a method that takes a temperature measured in Fahrenheit
as its parameter and returns the Celsius equivalent. (3 points)
Examples
Revisiting some from the previous lecture.