An odometer records a car’s mileage. A mechanical odometer contains a number of wheels that turn as the car travels. Each wheel shows a digit from 0 to 9. The rightmost wheel turns the fastest and increases by 1 for every mile traveled. Once a wheel reaches 9, it rolls over to 0 on the next mile and increases by 1 the value on the wheel to its left. You can generalize the behavior of such wheels by giving them symbols other than the digits from 0 to 9. Examples of such wheel counters include
? A binary odometer whose wheels each show either 0 or 1
? A desktop date display with three wheels, one each for year, month, and day
? A dice roll display whose wheels each show the spots for a single die
Write a Java interface for a general wheel counter that has up to four wheels. Also, write a Java interface for any class that represents a wheel. Include comments in javadoc style.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.