Module 8 Adapter Pattern

Objective: Extend the previous adapter pattern implementation to support an InsideWeatherStation that reports temperature in Celsius. Implement an adapter to convert this to Celsius.

Task 1: Implement the InsideWeatherStation

Task 2: Modify your driver to have station2 be an instance of the InsideWeatherStation

Task 3: Modify the application to also print the temperature in Fahrenheit for all the weather stations (you will need to add a member to your interface)

Submission:

  • Submit the modified assignment class as a separate file or as part of the existing project.

Good luck with your lab assignment!

 

 

COSC-1437 / ITSE-2457 Computer Science Dept. - Author: Dr. Kevin Roark