Counting in Other Number Bases

written by Teresa Carrigan


Run model in your browser


Top

HOW TO USE IT

Use the number-of-digits slider to set the number of digits that the counter can hold. Use the base slider to set the base. Now press the setup button. This will zero all the digits and initialize the patch variables.

The slow-motion slider is an easy way to adjust the speed of the display so you can watch the digits change as the red arrow moves. Set it to zero if you want to quickly count to a large number.

The increment button adds one to the counter.

The loop button will continuously increment the counter until clicked a second time.

To take a quiz, first select the quiz topic, and then click the quiz button. You may choose to include commas or spaces in your answer to help you count digits; they will be ignored. If you choose "random quiz topic" for your quiz topic, then one of the other possible quiz topics will be chosen for you. When answering a counting quiz question for a base higher than decimal, upper and lower case do not matter.

The base slider sets the base to be used the next time the setup button is pressed. You may choose any base from two to sixteen.

The number-of-digits slider sets the number of digits that the count will hold the next time the setup button is pressed. Possible values range from two to ten.

The setup button consults the base slider and number-of-digits slider, then initializes the counter to that base and number of digits, setting each digit to zero.


Home

Applets on this website were written by Teresa Carrigan in 2004, for use in computer science courses at Blackburn College, with the exception of the Fireworks applet. The applets made with NetLogo require Java 1.4.1 or higher to run. The applets made with NetBeans require Java 1.4.2 or higher to run. Applets might not run on Windows 95 or Mac OS 8 or 9. You may obtain the latest Java plugin from Sun's Java site.