Question: In java answer the following: A school assigns a six-digit number to each student. In order to check if the student types in their student
In java answer the following: A school assigns a six-digit number to each student. In order to check if the student types in their student number correctly, a seventh digit can be determined from the other digits using the following number: 7th digit = (1*(1st digit) + 2*(2nd digit) + ... + 6*(6th digit))%10 If the number is typed incorrectly, the check digit will fail to match 90% of the time. Write an interactive program that prompts the user for a six-digit student number and prints out the check digit for that number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
