I am taking a java class and one of our assignments is to create a modulus counter class that is tested by a Driver class. I was just curious if anyone had any ideas on how to start. Ive been doing some research but have yet to find anything. Thank you.
"Modify the Counter class such that is becomes a "modulus" counter. (You may leave the name of the class unchanged.) When a modulus counter is created, the maximum value of the count is specified. The counter should never be able to reach this maximum value. Instead, it should wrap around to 0. (E.g., If m is the modulus, incrementing the counter would give: 0, 1, 2, ..., m-1, 0, 1, 2, ..., m-1, 0, 1, 2, ... In other words, instead of reaching m, it goes back to 0.) Test your counter at this point and continue when you are satisfied that you've implemented it correctly."
Basically (I think) the functions is supposed to print like: