Feature #3: Power Up the Station
Implementing the "Power Up the Station" feature for our "Cellular Operator" project.
We'll cover the following...
Description
AT&T just acquired a cellular company in a small town that owns four base stations. The company they acquired owned vintage equipment with dials that must be rotated clockwise or counterclockwise by hand to power up the base stations. There’s one dial for each of the base stations. Each dial has numbers from 0
to 9
and does not stop at either extreme; this means we can rotate clockwise at 9
to go back to 0
or counterclockwise at 0
to go to 9
.
Each position on a dial represents a particular state for the corresponding base ...