General counter

This assignment tests your ability to write programs with user input and numeric variables and expressions.

Earlier we wrote a counting program that added one to a counter every time the user clicked on a button. Now you should write a more general counting program that allows the user to specify the starting and increment values. When it is working, print a screen shot of it just after you have entered the starting and increment values and a second screen shot after you have licked the counting button a few times. Turn in the screen shots and a listing of the program.

Note that my program changes the total as soon as the user changes the initial value. Which event causes that to happen? Hint: scan through the list of TextBox events. It also allows the user to change the increment value during execution.

Note also that my program begins with focus on the Initial value TextBox, and it proceeds to the Increment and the Click me button.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.