0% found this document useful (0 votes)
3 views2 pages

Principles of Programming II - Assignment #4 (Exception Handling and Graphical User Interface) - SP 2022 - J Williams

This document outlines the coursework for the Principles of Programming II course (CPTR242) for Spring 2022, detailing an individual assignment focused on exception handling and Graphical User Interface (GUI) in Java. Students are required to demonstrate various exceptions through sample programs and create an Order Form. The assignment is due on April 20, 2022, and is worth a total of 100 marks.

Uploaded by

Joraine Robinson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Principles of Programming II - Assignment #4 (Exception Handling and Graphical User Interface) - SP 2022 - J Williams

This document outlines the coursework for the Principles of Programming II course (CPTR242) for Spring 2022, detailing an individual assignment focused on exception handling and Graphical User Interface (GUI) in Java. Students are required to demonstrate various exceptions through sample programs and create an Order Form. The assignment is due on April 20, 2022, and is worth a total of 100 marks.

Uploaded by

Joraine Robinson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

COLLEGE OF NATURAL & APPLIED SCIENCES, ALLIED HEALTH

AND NURSING

DEPARTMENT OF COMPUTER & INFORMATION SCIENCES

UNDERGRADUATE DEGREE COURSEWORK

SPRING 2022

COURSE NAME: Principles of Programming II

CODE: CPTR242

DUE DATE: APRIL 20, 2022

WEIGHTING: 100 Marks

COURSEWORK TYPE: ASSIGNMENT #4 – INDIVIDUAL (Exception Handling and


Graphical User Interface)

INSTRUCTIONS: ANSWER ALL PARTS OF THIS ASSESSMENT.

The question will test your knowledge and application of exception handling and Graphical
User Interface (GUI) within the Java programming environment. You are expected to
answer all questions by creating a separate program, you will then zip/compress and upload
your files.
Question 1
Create sample Java Program to demonstrate the following:
a) ArrayIndexOutOfBoundsException (4 marks)
b) NumberFormatException (5 marks)
c) StringIndexOutOfBoundsException (5 marks)
d) Create a program that will demonstrate a user defined exception
using the throw keyword. (6 marks)

Question 2
Create the following Order Form (15 marks)

Total: 35 Marks

You might also like