In the off chance that the user fails to read the UG carefully and enters more than 10 characters for the module code, the program crashes and exits. Although this goes against what is stipulated in the UG, I think it would be a better idea for the program to handle this case and print an error message to the user to inform them of their error so they can make the necessary adjustments. Otherwise, they will be left wondering why the application does not function as intended.
In the off chance that the user fails to read the UG carefully and enters more than 10 characters for the module code, the program crashes and exits. Although this goes against what is stipulated in the UG, I think it would be a better idea for the program to handle this case and print an error message to the user to inform them of their error so they can make the necessary adjustments. Otherwise, they will be left wondering why the application does not function as intended.