Signed Integer Representation Model

written by Crystal Barchet and Teresa Carrigan


Run model in your browser


Top

EXTENDING THE MODEL

Allow the user to input the starting decimal integer.

Calculate and display all three formats for the same decimal integer.

Allow the user to specify either eight-bit or sixteen-bit format.

Allow a larger range for the generated decimal integer, and check for overflow.

Top

NETLOGO FEATURES

word is used to concatenate inputs together and reports the result as a string.

one-step uses the NetLogo run command combined with a global integer variable step to run the next step, without needing nested ifelse blocks.

without-interruption runs all the commands in the block without allowing other agents to "interrupt". That is, other agents are put "on hold" and do not execute any commands until the commands in the block are finished.

Top

RELATED MODELS


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.