Solved

Case 1 - Horizon Cleaners

Question 55

Multiple Choice

Case 1 - Horizon Cleaners
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) strIsOK = TryParse(txtShirts.Text, intShirts)
B) strIsOK = Integer.TryParse(intShirts, txtShirts.Text)
C) blnIsOK = Integer.TryParse(txtShirts.Text, intShirts)
D) blnIsOK = TryParse(txtShirts.Text, intShirts)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents