Signed Integer Representation Model

written by Crystal Barchet and Teresa Carrigan


Run model in your browser


Top

HOW TO USE IT

The setup button generates a random signed decimal integer.

The step button demonstrates the next step, and then stops so you can take notes. This is useful when you are first learning the method.

The go button does every remaining step, at a speed determined by the slow-motion slider. This is useful when you do not need to take notes between each step.

The show-again button starts the exact problem from the beginning. You may then click either the step button or the go button to see the same demonstration.

The slow-motion slider is an easy way to adjust the speed of the display. Set it to zero if you want to show the final result as quickly as possible. 0.5 is a good setting for most purposes.

If the random-format switch is off, then the format demonstrated is the one selected by the format choice box. If the switch is on, then a random format will be chosen.

The format choice box allows you to select which format (signed magnitude, one's complement, two's complement) is demonstrated. The random-format switch must be off for your choice to be used.

The quiz button will generate a random signed decimal integer and ask the user to convert it to either signed magnitude, one's complement, or two's complement. The format used is determined by the format choice box or the random-format switch.


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.