modify the program to validate the year entered is numeric, positive, and the

modify the program to validate the year entered is numeric, positive, and the

modify the program to validate the year entered is numeric, positive, and the

* correct length of four digits. You will also validate the month entered is

* from 1 to 12. If either is incorrect you need to create a Custom Exception

* class that states the problem, and allows the member to change either the

* year or month, using a Try…Catch block. Once you have validated the data you

* need to print out the calendar for the month entered. At the beginning of the

* program add appropriate comments as in previous assignments

Modify a Java program meeting the following requirements using concepts presented up to chapter 13.

Using the program provided, listing 6.12 PrintCalendar, you are to modify the program to validate the

year entered is numeric, positive, and the correct length of four digits. You will also validate the month

entered is from 1 to 12. If either is incorrect you need to create a Custom Exception class that states the

problem, and allows the member to change either the year or month, using a Try…Catch block. Once

you have validated the data you need to print out the calendar for the month entered.

At the beginning of the program add appropriate comments as in previous assignments.

Purpose: Modify a java program from detailed directions.

Ability to:

Follow established programming standards for writing java programs

Able to interrogate data

Create a custom Exception

Use the custom Exception with a try catch block

Use the print statement for output

Write a Java program using concepts up to chapter 16 that meets the following requirements:

Use the details of Assignment 4 Cakes and use JavaFX to create a windows application.  Use combo

boxes for the user to choose cake type, flavor, size, filling and decoration. Once the user has made their

choice display the user’s choices. You will provide what is available for each choice in the combo boxes.

Have at least 3 choices for each item.  You will not need to create any objects.  Add the name of the

business with the slogan. Add color and an appropriate graphic to the output. Hope you have fun with

this one.

As usual, at the beginning of the program add the standard comments including a program description.

Purpose:

Create a java program from detailed directions.

Ability to:

Follow established programming conventions for writing java programs

Scroll to Top