Both C++ and Java examples are included in the distribution;
however, only the C++ examples are shown here.
(Other than the obvious syntax differences between C++ and Java,
there is little difference between the sets of examples.)
What would any programming language be without having
this as its first example?
Simulates a simple vending machine
wherein you deposit coins
until you have enough to buy a particular item
then select the item.
Making water molecules
Using derived classes,
extend CHSM to approximate
In this case, make some water molecules: H2O.
Simulates a simple microwave oven
wherein you set the cooking time, power level, then cook food.