Let us say a Company uses codes to represent its variousproducts a codes include
ID: 3613047 • Letter: L
Question
Let us say a Company uses codes to represent its variousproducts
a codes includes, among other information, a character in tenthposition
that represents the zone from which that product was made, and 4digits
integer in position 4 thru 7 that represents the district inwhich it will
be sold. Due to some reorganization, products from zone R arebanned
from being sold in districts with a designation of 2000 orhigher.
Writ a complete program to count and print number of banned andvalid 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