a button labeled "go up/down"
Computers and Technology, 06.12.2019 03:31, jcastronakaya
Write a widgetview gui that has the following widgets:
a button labeled "go up/down"
a label initialized to 0 (we'll call this the left label)
a label initialized to 0 (we'll call this the right label)
a button labeled "go down/up"
a label initialized to "last random #s: " (we’ll call this the numbers label)
when the "go up/down" button is pushed, a random number between 1 and 10 (inclusive) is generated and added to the left label, and another random number between 1 and 10 (inclusive) is generated and subtracted from the right label. the two random numbers are displayed in the numbers label.
when the "go down/up" button is pushed, a random number between 1 and 10 (inclusive) is generated and subtracted from the left label, and another random number between 1 and 10 (inclusive) is generated and added to the right label. the two random numbers are displayed in the numbers label.
the picture below is the output.
Answers: 1
Mathematics, 18.11.2019 04:31, alazayavila123
Answers: 1
Physics, 25.11.2019 22:31, lucky1940
Answers: 3
Write a widgetview gui that has the following widgets:
a button labeled "go up/down"
a button labeled "go up/down"
Biology, 01.06.2020 19:59
History, 01.06.2020 19:59
Mathematics, 01.06.2020 19:59
Mathematics, 01.06.2020 19:59