Click here to Skip to main content
15,886,806 members
Home / Discussions / C#
   

C#

 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
M Sukhdeep13-Apr-16 11:55
M Sukhdeep13-Apr-16 11:55 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
Dave Kreskowiak13-Apr-16 12:05
mveDave Kreskowiak13-Apr-16 12:05 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
M Sukhdeep13-Apr-16 12:08
M Sukhdeep13-Apr-16 12:08 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication PinPopular
Dave Kreskowiak13-Apr-16 12:21
mveDave Kreskowiak13-Apr-16 12:21 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
Mycroft Holmes13-Apr-16 12:52
professionalMycroft Holmes13-Apr-16 12:52 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
Richard MacCutchan13-Apr-16 20:45
mveRichard MacCutchan13-Apr-16 20:45 
GeneralRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
Richard MacCutchan13-Apr-16 20:44
mveRichard MacCutchan13-Apr-16 20:44 
Questioncsharp creating algorithm Pin
Member 1245597512-Apr-16 21:24
Member 1245597512-Apr-16 21:24 
Hi,

C#
In my interview following question was asked but I was unable to answer. Please help me in solving it.

C#
The algorithm below is a simple checksum formula used to validate a variety of identification numbers.

C#
Your Task: Write a class that can be used to add a check digit to any number.
The check digit is calculated as follows:

C#
1.	Counting from the right-most digit and moving left, double every alternate digit starting with the first one. For any digits that thus become 10 or more, take the two numbers and add them together. For example, 111 becomes 212, while 876 becomes 773.

C#
2.	Add all these digits together. For example, if 111 becomes 212, then 2+1+2 is 5; and 873 becomes 773, so 7+7+3 is 17.

C#
3.	The check digit is: 10 – (<the sum above> % 10), where % is the modulus operator (gives the remainder after division). For example, the check digit for 111 is 10 - the remainder of (2+1+2)/10, which is 5. The check digit for 876 is 10 - (7+7+3)%10, which is 3.

AnswerRe: csharp creating algorithm Pin
Peter_in_278012-Apr-16 22:13
professionalPeter_in_278012-Apr-16 22:13 
AnswerRe: csharp creating algorithm Pin
OriginalGriff12-Apr-16 22:19
mveOriginalGriff12-Apr-16 22:19 
AnswerRe: csharp creating algorithm PinPopular
BillWoodruff12-Apr-16 23:47
professionalBillWoodruff12-Apr-16 23:47 
GeneralRe: csharp creating algorithm Pin
OriginalGriff13-Apr-16 0:10
mveOriginalGriff13-Apr-16 0:10 
GeneralRe: csharp creating algorithm Pin
Richard MacCutchan13-Apr-16 0:44
mveRichard MacCutchan13-Apr-16 0:44 
GeneralRe: csharp creating algorithm Pin
BillWoodruff13-Apr-16 3:02
professionalBillWoodruff13-Apr-16 3:02 
GeneralRe: csharp creating algorithm Pin
Sascha Lefèvre13-Apr-16 3:51
professionalSascha Lefèvre13-Apr-16 3:51 
GeneralRe: csharp creating algorithm Pin
BillWoodruff13-Apr-16 5:02
professionalBillWoodruff13-Apr-16 5:02 
AnswerRe: csharp creating algorithm Pin
Patrice T13-Apr-16 9:14
mvePatrice T13-Apr-16 9:14 
Questionpuzzle, sub string not working Pin
Member 1016760412-Apr-16 21:20
Member 1016760412-Apr-16 21:20 
AnswerRe: puzzle, sub string not working Pin
Richard MacCutchan12-Apr-16 21:25
mveRichard MacCutchan12-Apr-16 21:25 
QuestionCould not load file or assembly Pin
RAFish040412-Apr-16 8:26
RAFish040412-Apr-16 8:26 
AnswerRe: Could not load file or assembly Pin
Richard MacCutchan12-Apr-16 10:01
mveRichard MacCutchan12-Apr-16 10:01 
QuestionHow add a custom menu to Windows Explorer's tool bar Pin
srikrishnathanthri11-Apr-16 21:50
srikrishnathanthri11-Apr-16 21:50 
AnswerRe: How add a custom menu to Windows Explorer's tool bar Pin
Pete O'Hanlon11-Apr-16 22:22
mvePete O'Hanlon11-Apr-16 22:22 
GeneralRe: How add a custom menu to Windows Explorer's tool bar Pin
srikrishnathanthri12-Apr-16 3:51
srikrishnathanthri12-Apr-16 3:51 
QuestionRe: How add a custom menu to Windows Explorer's tool bar Pin
CHill6012-Apr-16 5:52
mveCHill6012-Apr-16 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.