CIST 1305 Unit 07 Lab

CIST 1305
Unit 07 Drop Box Assignment
The Assignment
ONLY ONE FILE may be turned in for the assignment. If you make a mistake and need to turn in your work
again, you may do so. I will only grade the latest file you turn in. The older ones will be ignored. For instruction
on How To do assignments and create the file see the “How To Do Homework” document under the “Start Here”
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]
What to turn in
At the top of your paper make sure you put your name, date, and “CIST 1305 Unit 07 Lab”. You can save your
document for your own use in any format you like. Name your paper “”. Where xxx is the file extension your word processor uses. So Tom Swift (who used Word) would
name his file Unit01_Lab_tswift.docx.
But, create a PDF document to turn in. So Tom’s document to turn in would be named Unit07_Lab_tswift.pdf.
All modern word processors can create a PDF file by use of a “Save As …” dialog or an “Export…” dialog usually
found under the “File” menu. If you are not sure how to export a PDF Google it to find out. If that does not help
post to our HELP discussion board.
Grading Rubric
How your answer will be graded
File turned in is in PDF format 10.00%
Correct prompt and input statements and output statement is present for normal operation 15.00%
Try block is correct 25.00%
Both exceptions are caught correctly 50.00%
[1] Farrell, Joyce, An Object-Oriented Approach to Program Logic and Design, 4th ed, p 398
Version 1.3

New Download