Hey all.
I have this Programming Class that I am taking that uses PsuedoCode. PsuedoCode is not real Code but it describes the LOGIC of Steps in a Program. Well I am having a little bit of a problem on a question.
How would one properly Write and Validate a "Part Number" that is 6 characters where the first two are alpha (AA, BB, etc.) and the last four characters are Numeric (1234, 5434, etc.) Now the Algorithm that I am writing would read the "Part Number" and check with it meets the criteria I just described. But how would I writh that?
I don't think "IF strPartNumber = 6 THEN......." Would work because I have nothing to tell the program that the first two need to be ALPHA and the last four need to be numerical.
Even if you haven't used Psuedocode I would still apprectiate the help, it is the logic that I am after.
Thanks!
I have this Programming Class that I am taking that uses PsuedoCode. PsuedoCode is not real Code but it describes the LOGIC of Steps in a Program. Well I am having a little bit of a problem on a question.
How would one properly Write and Validate a "Part Number" that is 6 characters where the first two are alpha (AA, BB, etc.) and the last four characters are Numeric (1234, 5434, etc.) Now the Algorithm that I am writing would read the "Part Number" and check with it meets the criteria I just described. But how would I writh that?
I don't think "IF strPartNumber = 6 THEN......." Would work because I have nothing to tell the program that the first two need to be ALPHA and the last four need to be numerical.
Even if you haven't used Psuedocode I would still apprectiate the help, it is the logic that I am after.
Thanks!