a codes includes, among other information, acharacter in tenth position that rep
ID: 3612985 • Letter: A
Question
a codes includes, among other information, acharacter in tenth position
that represents the zone from which that product wasmade, and 4 digits
integer in position 4 thru 7 that represents the districtin which it will
be sold. Due to some reorganization, products from zone Rare banned
from being sold in districts with a designation of 2000 orhigher.
Writ a complete program to count and print number ofbanned and valid code entered.
Example: TRV2475A5R-14 valid
TRL2k74A5R-11 : district is not numeric
TRV2105A2 :improper code length
The user should signal end of file to stop the program