Horizon Cleaners is an organic dry cleaner for clothing. The price for dry cleaning a shirt is $3.00, the price for pants is $3.50, and the price for dresses is $4.00. All clothes can be either washed or dry cleaned. Dry cleaned clothes can be hung or folded, and folded items cost an additional $0.50 per item.
The interface provides a text box for the user to enter the number of shirts being laundered. You want to make sure a string typed in by the user can be converted to a number to be used in the calculation for the total. Which of the following statements is valid?
a.blnIsOK = Integer.TryParse(txtShirts.Text, intShirts)
b.strIsOK = TryParse(txtShirts.Text, intShirts)
c.blnIsOK = TryParse(txtShirts.Text, intShirts)
d.strIsOK = Integer.TryParse(intShirts, txtShirts.Text)