Question: I need a sample code for this in NetBeans Java please Validate User Input Using Java Chars and Strings In this assessment, you will design
I need a sample code for this in NetBeans Java please Validate User Input Using Java Chars and Strings In this assessment, you will design and code a Java console application that validates the data entry of a course code (like IT4782) and report back if the course code is valid or not valid. The application uses the Java char and String data types to implement the validation. You can use either the Toolwire environment or your local Java development environment to complete this assignment. The requirements of this application are as follows: The application is to read a course code entered by the user from the keyboard. The course code is made of 5 characters and should follow these rules: First character is always an upper case I or a lower case i Second character is always an upper case T or a lower case t Third, fourth, fifth, and sixth characters are always digits (0-9) The application then validates the course code against above the rules and prints a message if the course code is valid or not. If the course code is not valid, the application should print a message explaining why the course code is not valid. Use these course codes to test your application: IT4782 iT4782 OT4782 it&782 Successful completion of this assignment will show a valid message or an invalid message for the entered course code. In addition, if the course code is invalid, the application should identify the reason for the invalidation. With these achievable results. Please and thank You.




U4A1 ValdateCourseCode-Result . NetBeans IDE 8.1 File Edit View Nevigate Source Refactor Run Debug Profile Team Tools Window Help eardh (Ctri+ config Source Packages 21 Test Packages gLbraries Test Lbraries System.out.println ("Teacher's Copy") 23 Output-B4A1-ValidateCourseCode-Result trun) run: Teacher's Copy Enter a course code to validate (e.g. IT4782): t6782 Course code: it&782 is not valid Third character is not a digit BUILD SUCCESSFUL (total time: 12 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
