Code Monkey home page Code Monkey logo

sde_facade's Introduction

HomeCinema

How to put this thing on??? The following scenarios are supported by the code. But it is not easy, there are so many classes.. Can someone make this easier? Please help!

To watch a movie we should:

  1. turn popcorn popper on.
  2. let the popcorn popper pop.
  3. Dim the lights
  4. Put the screen down
  5. Put the projector on
  6. and set it to wide screen mode
  7. Put the amplifier on
  8. insert an DVD in it
  9. enable surround sound on
  10. set the volume to 5
  11. set the dvdplayer on
  12. play the movie on the dvd player

When we're ready watching the movie:

  1. turn the popcorn popper off
  2. put the lights on
  3. roll up the screen
  4. turn off the projector
  5. turn off the amplifier
  6. stop the dvd
  7. eject dvd
  8. turn off dvd player

To listen to the music we should:

  1. put the lights on
  2. put the amplifier on
  3. set the volume of the amplifier to 5
  4. insert a cd in the amplifier
  5. and enable sterio sound
  6. turn the cd player on
  7. let the player play the cd

When we're ready listening music:

  1. turn the amplifier off
  2. set the amplifier to cd mode
  3. eject cd out of the cd player
  4. turn off cd player

To listen to the radio we should:

  1. turn the tuner on
  2. set the frequence to the required number
  3. turn the amplifier on
  4. set the amplifier volume to 5
  5. set the amplifier to tuner mode

When we're ready listening music:

  1. turn of the tuner
  2. turn off the amplifier

Acknowledgements

The code of this assignment is taken from Head First Design Patterns A Brain-friendly Guide. We thank the authors Eric Freeman Elisabeth Robson for this.

sde_facade's People

Contributors

phocean01 avatar anieuwenhuize avatar peverse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.