Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2013Fall

08.20.12 - 12.16.12

Ruby

CSYS2853

Tuesday Thursday
04:00 PM - 05:20 PM

Temperature Converter

Lab08

Objective: Practice with Testing and Dynamic Class Behaviors

pastdue

Submit Your Solution

Lab08

Request a Copy of your Solution

Lab08

Requirements

All tests pass (in the spirt of the test)75 pts
Short convert methods are handled with respond_to? and method_missing25 pts
Total100 pts

Instructions

Write a class called Temp that will be able to convert temperatures between Celsius, Fahrenheit, and Kelvin. Your class is complete when it can pass all of the unit tests in the attached file.

In the tests where it refers to short_convert_methods, those methods should not be implemented as traditional methods in the class. Instead, they should be handled by responds_to? and method_missing methods.

Extras