Anyone know how to create a program that you enter your loyalty card number,expiry date, name and postcode. It has to check if the card has expired, if the loyalty card number is valid by:
Allowing the user to enter the 8 digits
Removing the 8th digit and storing it as Check_digit
Reversing the numbers
Multiplying the 1st 3rd 5th and 7th digits by 2
^If the result is greater than 9 then subtract 9 from the result
Add together the resulting 7 digits
Finally check if the sum of the added digits plus the check_digit is divisible by 10
Anyone able to help me