How should you write the code?

You are developing an online shopping application that accepts credit cards for payment.
If the credit card number is invalid, the application must:
Generate an error
Assign “200” to the error number
Assign “Invalid” to the error description
You need to write the code that meets the requirements.
How should you write the code? (To answer, drag theappropriate code segment or segments to the correct
location in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)

You are developing an online shopping application that accepts credit cards for payment.
If the credit card number is invalid, the application must:
Generate an error
Assign “200” to the error number
Assign “Invalid” to the error description
You need to write the code that meets the requirements.
How should you write the code? (To answer, drag theappropriate code segment or segments to the correct
location in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)

Answer:

Explanation:

Throw Error
http://msdn.microsoft.com/en-us/library/ie/85fscz6h(v=vs.94).aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *