Computers and Technology

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.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Write a widgetview gui that has the following widgets:

a button labeled "go up/down"

Questions in other subjects:

Konu
Mathematics, 01.06.2020 19:59
Konu
Mathematics, 01.06.2020 19:59