PowerPoint Presentation Assignment 4 (Due August 5) CSCI 1228 Description You are provided with this powerpoint. You will need to create 5 classes: A4Driver.java which contains regular operational...

Complete assignment for reference


PowerPoint Presentation Assignment 4 (Due August 5) CSCI 1228 Description You are provided with this powerpoint. You will need to create 5 classes: A4Driver.java which contains regular operational code and Java exception handling A4Exceptions.java which is a super class for all your more specific exceptions DateLengthException.java which operates when the date is the wrong length. NonNumericDateException.java which operates when any of the numeric fields contain something other than a number. SeparatorException.java which operates when anything other than a "/" character is used as a separator in the date. Description The code below is how your A4Driver.java should start. public static final int DATE_LENGTH = 10; public static final String SEPARATOR = "/"; public static void main(String[] args) {     System.out.println("You entered " + getDate()); } Description All catches are to occur in getDate() You must include a sub-method where all 3 specific exceptions are checked individually by calling 3 more sub-methods. If you combine more than one fault into the input line don't concern yourself about the order of the exceptions If there is more than one fault in the input line, only one exception needs to be thrown All exceptions are thrown using the default message Description (sample run) Please enter a shipping date (format: DD/MM/YYYY): 29/07/20211 Too many characters were entered for the date. Please enter a shipping date (format: DD/MM/YYYY): 29/07/2o21 For input string: "2o21" The day, month or year is non numeric. Please enter a shipping date (format: DD/MM/YYYY): 29/07:2021 An invalid separator was used in the date. Please enter a shipping date (format: DD/MM/YYYY): 29/07/2021 You entered 29/07/2021 Grading Submit all 5 classes to dropbox A4 in BrightSpace Out of 20 points: 2 points for exactly matching output (See slide 5) 2 points for code that follows best practices as described in lectures and labs 10 points for code that functions correctly 6 points for documentation that follows the standards in the Overview on BrightSpace
Aug 05, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here