A10.1-R4: INTRODUCTION TO OBJECT ORIENTED PROGRAMMING THROUGH JAVA.
Some combined bath-showers have two faucets and a lever for controlling the flow of the
water. The lever controls whether the water flows from the showerhead or directly into the
a valve closes and latches, diverting the flow of water to the showerhead. To switch from
shower to bath with the water running, one must push the lever. Shutting off the water
releases the lever so that the next time the water is turned on, it flows directly into the tub.
Write a scenario for a shower that is interrupted by a telephone call.