Question: Develop a Java program that asks the user to input a student number. The format of the student number is a sequence of the

Develop a Java program that asks the user to input a student 

Develop a Java program that asks the user to input a student number. The format of the student number is a sequence of the following: 1. Four (6) digits 2. A dash 3. Two (2) digits 4. A dash 5. Three (3) digits Display a welcome message if the student number is valid; otherwise, show an appropriate error message. Do not copy the welcome message in the sample output. Sample Output: Hi student! Please enter your Student Number: 020001-68-519 Awesome! You are now successfully logged in. Welcome! Now let's take a tour to your new Dashboard!

Step by Step Solution

3.47 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner import javautilregex public class ... View full answer

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 Programming Questions!