Throw of the dice
The dice program, version 1.
Two dice are thrown in a betting game and the program has to decide what the result is. Two scrollbar with a range of 1 to 6 to input the values of each dice are created.
For this program, the two horizontal bars are set up so that:
1. The initial value of the scroll bar is 1.
2. The amount the value is changed if the area between the slider and the end of the range is clicked is 1.
3. The minimum value is 1.
4. The maximum value is 6.