Input validation

This assignment will test your ability to check the validity of user input.

Write a program that does the same thing as this payroll program. Be sure to check that both the hours and pay rate are between 0 and 80. If either input is illegal, display an appropriate error message, and do not do the computation.

When it is working, turn in a screen shot showing an error message and the listing.

Hint: Check the validity of the data when the user leaves the TextBox. If the data is invalid, display an error message, and re-focus on the TextBox so the user can enter corrected data.


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.