USING JAVA!!! WILL UPVOTE
1 Purpose
This assignment introduces you to java graphics which we will use to create a graphical user interface (GUI) for data input and validation. You'll use some graphics objects along with the java you have learned in the first 3 chapters to test if a date entered by a user is valid.
2 Program Description
Create a graphics program which will display an input box, a validation results box, instructions, and 2 buttons: one to validate the input and one to reset the text boxes to empty.
Enter date as m(m)/(d)(d)/(m)yyy
DATE
Results:
Write a program that lets the user enter a date in mm/dd/yyyy format. When the validate button is pressed a message displays saying it is valid or else a specific relevant error message is displayed. Be sure to test for all error conditions noted below. If an input would fail more than one condition you need only print one of the errors. When the reset button is pressed, clear both boxes.
Validation rules
You may assume that single digit months and days will always have leading zeros. Check for the following conditions and display a specific error message if one of these tests fails.
User input is 10 characters long
All 8 numeric positions are digits
The 2 /'s are in their correct positions
The month number is a number from 1 to 12
The day number is valid for its corresponding month, including leap years
The year cannot be 0
1
Purpose
first 3 chapters to test if a date entered by a user is valid
2
Program Description
Create a graphics program which will display an input box, a validation results box,instructions, and 2 buttons:one to validate the input and one to reset the text boxes to empty
Enter date as mm/dd/yyyy
DATE
Results:
Write a program that lets the user enter a date in mm/dd/yyyy format. When the validate button is pressed a message displays saying it is valid or else a specific relevant error message is displayed.Be sure to test for all error conditions noted below. If an input would fail more than one condition you need only print one of the errors.When the reset button is pressed,clear both boxes
Validation rules You may assume that single digit months and days will always have leading zeros. Check for the following conditions and display a specific error message if one of these tests fails 1. User input is 10 characters long 2. All8 numeric positions are digits 3. The 2/'s are in their correct positions 4. The month number is a number from1 to 12 5. The day number is valid for its corresponding month,including leap years 6. The year cannot be 0