Title Counting the Number of Valid and Banned Product Codes (Case 1)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/exceptions_j_check_producut_code__68bdb309f6cc3d7a9cc0978c
Platform Name PCEX
Features
Description Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character in the tenth position that represents the zone from which that product was made. Due to some reorganization, products from zone R are banned from being sold.\nConstruct a program that reads product codes from the user and counts the number of valid and banned codes entered. Make sure that the program handles all possible exceptions.\nThe program must ask the user for an input until the user enters STOP.
Keywords exception handling, exceptions
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/exceptions_j_check_producut_code__68bdb309f6cc3d7a9cc0978c
Protocol SPLICE, HTML, PITT
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview

SPLICE Output