Title Determining Whether One is a Teenager (Case 2)
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=exceptions.j_check_age&ch=JCheckAge2
Platform Name PCEX
Features
Description Construct a program that asks the user to enter a string that has the user name and age separated by a colon, and prints whether the user is a teenager. Make sure that the program handles all possible exceptions. The program must ask the user for an input until the user enters a string that could be processed without any exception.
Keywords classes, exception handling, exceptions, file i/o, if-else statement, loops, methods, objects
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=exceptions.j_check_age&ch=JCheckAge2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview