Starting from:

$10

CIST 1305 Unit 07

You will create a word processing document and create a psuedocode solution to the following problem.

Design an application that prompts the user to enter a number as an array size, and then attempt to declare an array using the entered size. If the array is created successfully, display an appropriate message. Assume that a NegativeArraySizeException is generated if you attempt to create an array with a negative size, and that a NumberFormatException is generated if you attempt to create an array using a nonnumeric value for the size.
Use a catch block that executes if the array size is nonnumeric or negative and displays a message that the array was not created. [1]

More products