I have a project that I am working on that requires me to validate an integer. here's the specifications:

Valid ISBN numbers are exactly 5 digts long. The low order digit (called the check digit) is the sum of the four high-order digts modulus 9. If the ISBN is invalid, display an appropriate message and return to the main menu. Remember that the ISBN is entered as an integer not seperated digits...

First things first... how do I go about doing this? I have a very limited C++ background, this project is for a first year course... Can anyone point me somewhere that could explain how to do this, as I would like to write as much of the code on my own as possible, but I am running out of time and do not have the time to search on my own...

Thank you in advance!!