Question: also tell the errors Part #2 Requirements: . Write a java application that asks the user to enter the day, month and year of a

also tell the errors  also tell the errors Part #2 Requirements: . Write a java
application that asks the user to enter the day, month and year
of a date Write a method that determines whether the user entries

Part #2 Requirements: . Write a java application that asks the user to enter the day, month and year of a date Write a method that determines whether the user entries is correct or not, and where is the error. It is assumed that: the year is between 1900 and 2019 . the month is between 1 and 12 the day is between 1 and 30 Source Code I public class SumofEven1{ private static Scanner sc; public static void main(String[] args) { int day,month,year; SC = new Scanner(System.in); print(day) System.out.print(" Please Enter day: "); day = sc.nextInt(); System.out.print("Please Enter month: "); month = sc.nextInt(); System.outprint(m. Please Enter year); year = sc.nextInt(); while(true) { if(day30) { System.out.println("you entered wrong day"); System.out.println("you day"); day=in.nextInt(); continue; } if(year2019) { System.out.println("you entered wrong year"); System.out.println("you year"); year=in.nextInt(); } if(month12) 1 System.out.println("you entered wrong month"); month=in.nextInt(); else System.out.println(day."+month+""+year); break

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!