Bmis 312 Assignment 7

In: Business and Management

Submitted By alexmicane4
Words 303
Pages 2
SOLUTIONSLIBRARY.COM

HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/

BMIS 312 ASSIGNMENT 7
________________________________________
Assignment 7 Instructions
Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running.
Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception
In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you:
Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method.
Create a class that calls that parse() method.
Write a try/catch block to catch the exception thrown by parse().
See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment.
Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy
In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month attribute is between 1 and 12 or throw an IllegalArgumentException. The calling methods or constructors should use try/catch blocks when calling either setDay() or setMonth(). Modify your PersonTest class, as necessary, to demonstrate your exception handling.
Once you have your exception handling enhancements in place, create a JAR file for deployment and submit it along with your java, class, and Word…...

Similar Documents

Bmis 208 Week 7

...HELPIDO.COM ----------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/bmis-208-week-7-write-a-visual-basic-program-to-create-and-maintain-telephone/ ----------------------------------------------------------------- BMIS 208 WEEK 7 ________________________________________ Create and Maintain Telephone Directories Write a Visual Basic program to create and maintain telephone directories. Each telephone directory should be contained in a separate text file. In addition, a file named Directories.txt should hold the names of the telephone directories. At any time, names of all the telephone directories should be displayed in a list box. After a telephone directory is selected, it becomes the current phone directory. The following buttons should be available. 1. 1. Create a new telephone directory. (The filename should be provided by an input dialog box.) A new text file should be created for the directory, and the name of the new directory should be added to the Directories.txt file. The Phone Directories listbox should immediately be refreshed to reflect the new directory, and the new directory should be automatically selected from the listbox. Note that this selection should trigger the procedure that sets the current directory and updates the contents of the current directory textbox. Also note that the list of directories is displayed in ascending order in the listbox. 2. 2. Add......

Words: 783 - Pages: 4

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 208 Week 7

...HELPIDO.COM ----------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/bmis-208-week-7-write-a-visual-basic-program-to-create-and-maintain-telephone/ ----------------------------------------------------------------- BMIS 208 WEEK 7 ________________________________________ Create and Maintain Telephone Directories Write a Visual Basic program to create and maintain telephone directories. Each telephone directory should be contained in a separate text file. In addition, a file named Directories.txt should hold the names of the telephone directories. At any time, names of all the telephone directories should be displayed in a list box. After a telephone directory is selected, it becomes the current phone directory. The following buttons should be available. 1. 1. Create a new telephone directory. (The filename should be provided by an input dialog box.) A new text file should be created for the directory, and the name of the new directory should be added to the Directories.txt file. The Phone Directories listbox should immediately be refreshed to reflect the new directory, and the new directory should be automatically selected from the listbox. Note that this selection should trigger the procedure that sets the current directory and updates the contents of the current directory textbox. Also note that the list of directories is displayed in ascending order in the listbox. 2. 2. Add......

Words: 783 - Pages: 4

Bmis 208 Week 7

...HELPIDO.COM ----------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/bmis-208-week-7-write-a-visual-basic-program-to-create-and-maintain-telephone/ ----------------------------------------------------------------- BMIS 208 WEEK 7 ________________________________________ Create and Maintain Telephone Directories Write a Visual Basic program to create and maintain telephone directories. Each telephone directory should be contained in a separate text file. In addition, a file named Directories.txt should hold the names of the telephone directories. At any time, names of all the telephone directories should be displayed in a list box. After a telephone directory is selected, it becomes the current phone directory. The following buttons should be available. 1. 1. Create a new telephone directory. (The filename should be provided by an input dialog box.) A new text file should be created for the directory, and the name of the new directory should be added to the Directories.txt file. The Phone Directories listbox should immediately be refreshed to reflect the new directory, and the new directory should be automatically selected from the listbox. Note that this selection should trigger the procedure that sets the current directory and updates the contents of the current directory textbox. Also note that the list of directories is displayed in ascending order in the listbox. 2. 2. Add......

Words: 783 - Pages: 4

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 208 Week 7

...HELPIDO.COM ----------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/bmis-208-week-7-write-a-visual-basic-program-to-create-and-maintain-telephone/ ----------------------------------------------------------------- BMIS 208 WEEK 7 ________________________________________ Create and Maintain Telephone Directories Write a Visual Basic program to create and maintain telephone directories. Each telephone directory should be contained in a separate text file. In addition, a file named Directories.txt should hold the names of the telephone directories. At any time, names of all the telephone directories should be displayed in a list box. After a telephone directory is selected, it becomes the current phone directory. The following buttons should be available. 1. 1. Create a new telephone directory. (The filename should be provided by an input dialog box.) A new text file should be created for the directory, and the name of the new directory should be added to the Directories.txt file. The Phone Directories listbox should immediately be refreshed to reflect the new directory, and the new directory should be automatically selected from the listbox. Note that this selection should trigger the procedure that sets the current directory and updates the contents of the current directory textbox. Also note that the list of directories is displayed in ascending order in the listbox. 2. 2. Add......

Words: 783 - Pages: 4

Bmis 208 Week 7

...HELPIDO.COM ----------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/bmis-208-week-7-write-a-visual-basic-program-to-create-and-maintain-telephone/ ----------------------------------------------------------------- BMIS 208 WEEK 7 ________________________________________ Create and Maintain Telephone Directories Write a Visual Basic program to create and maintain telephone directories. Each telephone directory should be contained in a separate text file. In addition, a file named Directories.txt should hold the names of the telephone directories. At any time, names of all the telephone directories should be displayed in a list box. After a telephone directory is selected, it becomes the current phone directory. The following buttons should be available. 1. 1. Create a new telephone directory. (The filename should be provided by an input dialog box.) A new text file should be created for the directory, and the name of the new directory should be added to the Directories.txt file. The Phone Directories listbox should immediately be refreshed to reflect the new directory, and the new directory should be automatically selected from the listbox. Note that this selection should trigger the procedure that sets the current directory and updates the contents of the current directory textbox. Also note that the list of directories is displayed in ascending order in the listbox. 2. 2. Add......

Words: 783 - Pages: 4

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2