Hello Everyone I'm new to to this forum. I'd appreciate it if someone experienced helped me with fixing my program.
I Need to write a program that validates a number. The number can't have any non-numeric characters in it, and it should be 8 numbers long like 12345678. I've managed to write the code to check whether it's 8 characters long but i cant get it to check whether it contains non-numeric characters. If it does contain non-numeric characters, it should change the student number to 55555555 and increment a counter. There are a few other criteria like asking for a name and changing the number to 11111111 or 99999999 if the number is less than or more than 8 characters but i got that working. My only problem is getting the while loop and the contained if-statement to work to change the student number to 55555555. This is my code: