Write a try statement and catch statement that will test a


Problem

1. Write a try statement and catch statement that will test a value entered by the user into a Text.

Field named my Age. If the value is not a valid age, the catch statement should display a message in a Label named error Label.

2. Given two positive integer variables, intA and intB, write a sequence of statements to assign the variable with the larger value to intBig and the variable with the smaller value to intSmall. If intA and intB are equal, assign either to intSame. Be sure to show variable declarations.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a try statement and catch statement that will test a
Reference No:- TGS02732523

Expected delivery within 24 Hours