Check digit calculation
-
I am developing an windows application in which i have to calculate check digit... For Example: Data to be encoded is "21435". encode: 2 1 4 3 5 Weighting: 5 4 3 2 1 ----------------------------------- Totals: 10 4 12 6 5 ----------------------------------- Then add them: 10 + 4 + 12 + 6 + 5 = 37 Next divide the total by 11 and get the remainder which is 37/11 = 3 remainder 4. The remainder is the check character. To type encoding the data 21435 that can be scanned, print (214354). How can i do this check digit calculation on every keypress event of textbox....... Help me in getting solution.....................
-
I am developing an windows application in which i have to calculate check digit... For Example: Data to be encoded is "21435". encode: 2 1 4 3 5 Weighting: 5 4 3 2 1 ----------------------------------- Totals: 10 4 12 6 5 ----------------------------------- Then add them: 10 + 4 + 12 + 6 + 5 = 37 Next divide the total by 11 and get the remainder which is 37/11 = 3 remainder 4. The remainder is the check character. To type encoding the data 21435 that can be scanned, print (214354). How can i do this check digit calculation on every keypress event of textbox....... Help me in getting solution.....................
So you want us to code an application in stead of trying yourself and then ask for hint if you really can't figure out what's wrong? Maybe you should give it a shot...
.: I love it when a plan comes together :. http://www.zonderpunt.nl