ibm check digit scheme

I need you to write a program (in JavaScript preferably), but I will accept Java applet format if you don't know JavaScript. i'd probably pay a little more if you could figure out how to do it with JavaScript. I already finished 6 of my check digit programs using JavaScript. But this ibm check digit scheme requires that i get the length of numbers entered to determine whether the length of numbers is even or odd and then perform a different equation of permutations depending on whether its even or odd. a more detailed explanation is shown below. THE IBM Scheme The identification number a1, a2, a3, .......,ai, ......., a n-1, a n is composed entirely of digits and has a variable length n. The check digit position is n. Legal numbers satisfy the formula. (if n is even) P[a1]+a2+P[a3]+a4+P[a5]+...+P[an-1]+an = 0 mod 10 -means divisible by ten and has a remainder of 0. (if n is odd) a1+P[a2]+a3+P[a4]+a5+......+P[an-1]+an=0 mod 10 Here P is the permutation array index 0 1 2 3 4 5 6 7 8 9 P 0 2 4 6 8 1 3 5 7 9 Example: n=8 01231786 is a legal number since P+1+P+3+P+7+P+6= 0+1+4+3+2+7+7+6= 30 = 0 mod 10 ----this means 30 divided by 10 =3 therefore remainder is 0. n=9 200209435 is legal since 2+P+0+P+0+P+4+P+5= 2+0+0+4+0+9+4+6+5=30 = 0 mod 10 this method catches all single digit errors and almost all transposition errors. The project is to write two separate programs. One for checking the digit entered and validating it when the user clicks the check button and returning a message like: "The number entered has been validated by the ibm scheme." or "The number entered is not a valid entry, please check your number for errors and re-enter" when the user clicks check. The second program is a completion program which will have the user enter in an incomplete number(missing one digit), and hit the complete button and the program will complete the number entered by appending the last digit that makes the number entered a valid entry. let me know if the details of this project are clear and whether you can program it in either JavaScript or Java Applet. Please provide price quote immediately. I need this project done fast. in an hour ideally. Thanks.

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.

must be completed quickly and code must be thoroughly commented(every single line). If you're not an experienced programmer you need not apply. If your rating is less than a 10, you need not apply. not even 9.9. unrated programmers, unless you can show examples of your previous work, you need not apply. must provide estimate of price and how quickly you can program it with your bid comment.

Om arbejdsgiveren:
( 6 bedømmelser )

Projekt ID: #2833126

Tildelt til:

See private message.

\$34 USD in 14 dage
(38 bedømmelser)
4.1

2 freelancere byder i gennemsnit \$38 på dette job

cscvw

See private message.

\$42.5 USD in 14 dage
(9 bedømmelser)
4.6