I need to create a program that will find account number and verify them I'm stuck though!!!
Posted on 2003-11-24
I need to create a program that will looking into a text file and read numbers out of the text file and then see if they are correct or not. For example, given the account number: 123456786 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 36 and 6 is the rightmost digit of 36, therefore the account is valid. While also I need to check to see if it is illegal meaning there is a space in the number.
The sample Input:
Output produced byt eh Sample Input:
Acct #: 123456786 is Valid.
Acct #: 123456789 is Invalid.
Acct #: 12343546 is Illegal.
If you could please help me with this I would appericate it. Thanks