Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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!

  • No labels