Question: CHALLENGE ACTIVITY 1 1 . 1 . 2 . Exception basics. 5 3 5 1 4 0 2 5 2 6 6 2 2 0

CHALLENGE
ACTIVITY
11.1.2. Exception basics.
53514025266220.020057
Jump to level 1
Complete the exception-handling construct to catch a runtime error exception and output "Passenger's age needs attention: followed by the exception's internal string value.
Ex: If input is 74, then the output is:
Passenger's age received: 74
Ex: If input is -2, then the output is:
Passenger's age needs attention: Value must be between 5 and 123
 CHALLENGE ACTIVITY 11.1.2. Exception basics. 53514025266220.020057 Jump to level 1 Complete

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!