Yoges
Check Digit Question not able to solve..
0 Answer(s)      a year and 10 months ago
Posted in : Java Beginners

Hi, I need some help asap. I been stuck for this question for more than 3 days. Using Java.

User needs to key in identification number (e.g. U0906931E) system check for the first prefix either 'U' || 'A'.

If its 'U' then it removes the first, last and the third digit. (096931) the result is then multiplied to {0, 1, 3, 1, 2, 7} Answer is then sum up. The answer is divided by 13. The value is check against the check digit table.

If its 'A' then the alphabets are removed with balanced with 7 digits then they are summed up. The answer is divided by 13. The value is check against the check digit table.

To display the id entered, the sum and remainder Then it goes thru a data validation to validate input.

Need help in how to convert the string of data to integers?

Advertisement
View Answers









Related Tutorials/Questions & Answers:
Check Digit Question not able to solve..
Check Digit Question not able to solve..   Hi, I need some help asap. I been stuck for this question for more than 3 days. Using Java. User needs... against the check digit table. To display the id entered, the sum and remainder
Check for character is digit or not.
Description: This tutorial demonstrate the use of Character.isDigit() method which checks whether the value stored in char data-type variable is digit or not. Code: public class CheckDigit 
Advertisements
Check whether the sum of alternate digit of a number is palindrome or not.
Check whether the sum of alternate digit of a number is palindrome... are going to check whether the sum of the alternate digit of a number entered... of the alternate digits of number (like if a number is 23456, the sum of alternate digit
Check for character is letter or digit.
Description .style1 { background-color: #FFFFCC; } Description: This tutorial demonstrate how to check a character variable value is a digit or letter using isLetterOrDigit() method. Code
help me to solve this question...
help me to solve this question...  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //bookâ??s title double price; //bookâ??s
ArrayList question plz solve it
ArrayList question plz solve it  An arraylist object stores an Emp Object, where there is name,age,address of the employee is stored, And i want to access the data in the basis of age based? Provide answer to the question
solve my question shortly
solve my question shortly  <html> <head> <script> function checkphoneNumber(number){ if(/[^\d ]/.test(number)){ alert('It should contain numbers [0-9] only!'); document.getElementById
help me to solve this question
help me to solve this question  Write a program that inputs a series of integers into an array. The numbers are in the range 0 to 100. Calculate and display : a) The Largest number b) The Smallest Number c)The sum of the numbers
help me to solve this question
help me to solve this question   A user needs to key in data into system in order to save data into array. The data are: a. Lecturer ID, Lecturer name, School, course code, course name, session, semester A user can edit the data
plz help meto solve this question
plz help meto solve this question  for a file that exist what will be the length() method in the file class return
how do i solve this question?
how do i solve this question?  1.Define a class named Circle with the following properties: a) An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier
please help me to solve this question about array
please help me to solve this question about array  write a program thatt stores vowels (a,e,i,o and u)in an array. Ask the user to enter any character. The program should ignore the case of that character (uppercase or lowercase
need to solve the below question - Java Beginners
need to solve the below question  I need to write an application that uses the circle class.it must read a radius of a circle from the user .create a circle object and return the object
Solve it
Solve it  How to calculate the value which contains oparator and operand both using command line argument
solve this
solve this   Create a student class. The student object should have studentid, studentname, subject and marks as properties. Also generate the getter and setter methods. Create 5 objects of this class and populate values
16 Digit
16 Digit  In a text box I can Only type A-Z & 1-10 upto 16 Digit.   <html> <script> function checkString(text) { if(/[^A-Za-z\d ]/.test(text)){ alert('String should contain letters and numbers only
calculate sum of individual digit
calculate sum of individual digit  Hi How to calculate product of first snd last digit of indiviual digit Like Num=23456 S=2*6
calculate sum of individual digit
calculate sum of individual digit   How calculate product of first and last digit of indiviual numbers Like a=43278 4*8=32
Digit Only text field
Digit Only text field  How should we accept digits only in a textbox? (using JSTL only, without Javascript
Encode 5 digit zip code - Java Beginners
zip code, sum the digits, and come up with the check digit. I then need to convert this to encode into a five digit bar code plus the check digit. In our book... has a sum of 19, check digit would be a 1 to become a multiple of 10 and when
check
updated"); will the above code check if the user has entered value for empcode
solve this pbm
solve this pbm  its not working the code for databae access using servlets
how to solve
how to solve   log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly
solve this problem
solve this problem  I typed this program and compiled.The program is compiled but when i eneterd url in tomcat server. Its not giving error but only... Friend, Here is our code. Check it. import java.io.*; import java.sql.*; import
solve this pbm
solve this pbm  sir rows are also inserting i have checked in the database also the rows are not affected in the table . The first pbm wich i have sent to you is not yet solved.......... pls give me detail explaination how we
how to solve this..
how to solve this..  Given a list of students and their marks Name | Science | Math | English | Computer Ahmad | 28 | 100 | 66 | 34 Samad | 56 | 89 | 55
how to solve this..
how to solve this..  Given a list of students and their marks Name | Science | Math | English | Computer Ahmad | 28 | 100 | 66 | 34 Samad | 56 | 89 | 55
Not able to display jtable at runtime
Not able to display jtable at runtime  Hello, can anyone please help me. I am trying to create a dynamic table with checkboxes. Data are accessed from database. But it is not creating the table at runtime. It retrieves data from
Solve this problem plzzz
kindly help me and check all those files and solve my problem as soon as possible...Solve this problem plzzz  Prashant.jsp (this is my JSP file) <HTML> <HEAD> <TITLE>Login using jsp <BODY>
A Program To Solve In Java
A Program To Solve In Java  x!/x+(x+2)!/x+(x+4)!/x ... (x+n)!/x
Advertisement