You are creating a console application named App1.
App1 will validate user input for order entries.
You are developing the following code segment (line numbers are included for reference only):
You need to complete the code segment.
The solution must ensure that prices are positive and have two decimal places.
Which code should you insert at line 03?
A. Option A
B. Option B
C. Option C
D. Option D
yes C, positive only.
EY Auditor, rather that: https://msdn.microsoft.com/en-us/library/3y21t6y4(v=vs.110).aspx
The correct one is ‘C’, the other answers do accept negative numbers.
yes, correct answer is C
Sorry, shall be C 🙂
Shall be D and other regex patterns allow non+positite numbers
https://msdn.microsoft.com/en-us/library/sdx2bds0(v=vs.110).aspx