Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read external hard disk and RAID hard disk serial numbers Pin
Eddy Vluggen13-Apr-16 23:31
professionalEddy Vluggen13-Apr-16 23:31 
Questionretrieve from database Pin
Member 1245627113-Apr-16 21:44
Member 1245627113-Apr-16 21:44 
AnswerRe: retrieve from database Pin
Garth J Lancaster13-Apr-16 21:55
professionalGarth J Lancaster13-Apr-16 21:55 
AnswerRe: retrieve from database Pin
Chris Quinn13-Apr-16 22:00
Chris Quinn13-Apr-16 22:00 
GeneralRe: retrieve from database Pin
Richard MacCutchan13-Apr-16 23:15
mveRichard MacCutchan13-Apr-16 23:15 
GeneralRe: retrieve from database Pin
Chris Quinn13-Apr-16 23:18
Chris Quinn13-Apr-16 23:18 
AnswerRe: retrieve from database Pin
Pete O'Hanlon14-Apr-16 0:38
mvePete O'Hanlon14-Apr-16 0:38 
QuestionAsked about splitContainer of Visual Studio Pin
Member 245846713-Apr-16 16:04
Member 245846713-Apr-16 16:04 
AnswerRe: Asked about splitContainer of Visual Studio Pin
OriginalGriff13-Apr-16 19:58
mveOriginalGriff13-Apr-16 19:58 
GeneralRe: Asked about splitContainer of Visual Studio Pin
Member 245846713-Apr-16 22:28
Member 245846713-Apr-16 22:28 
GeneralRe: Asked about splitContainer of Visual Studio Pin
OriginalGriff13-Apr-16 22:33
mveOriginalGriff13-Apr-16 22:33 
GeneralRe: Asked about splitContainer of Visual Studio Pin
Member 245846714-Apr-16 15:20
Member 245846714-Apr-16 15:20 
QuestionHTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
M Sukhdeep13-Apr-16 11:42
M Sukhdeep13-Apr-16 11:42 
AnswerRe: HTTPListener with AuthenticationSchemes.IntegratedWindowsAuthentication Pin
Dave Kreskowiak13-Apr-16 11:53
mveDave Kreskowiak13-Apr-16 11:53 
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 

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.