> Java > toys
> Java > toys
by ZweiBieren Java Toys
 
In lighter moments, my mind turns to toys. They've wound up here. After downloading the InstallToys jar, put it in a destination directory and double click it. Then double click one of these toy names:

small toy monkey PrimeFactors

half-size image of PrimeFactors window
Answer for prime factors of 26

When the user clicks ASK ME, the toy asks "What are the prime factors of XX?" The user types in the factors and clicks CHECK. In the image, XX is 26 and the user has correctly said 2 and 13.

For a wrong answer, say 3 and 5, the toy politely reports "The product of 3 and 5 is 15"

small toy monkey SpeedsConverge

half-size image of SpeedsConverge window
Section 8 of the SpeedsConverge story

Hot coffee cools. Of course. But why? I always thought it was a statistical phenomena, but in writing this toy, I discovered that cooling is a mechanical result of the bouncing of molecules. When two molecules bounce, the outgoing speeds are inevitably between the two incoming speeds. In the example shown in the diagram, the outgoing speeds are 185.5 and 194.0; both are above the smaller incoming value of 140.0 and below the larger incoming value of 229.0.

Each section of the discussion is accompanied by an interactive illustrative diagram:

  • a collection of bouncing molecules
  • a diagram of two molecules as they bounce (shown at the right)
  • the triangles formed by vectors and their axes
All accompanied by sound effects.
 
Copyright © 2019 ZweiBieren, All rights reserved. Dec 14, 2019 17:53 GMT Page maintained by ZweiBieren