Question: 1 3 . Ask the user to enter a user id in the following format: AAAA - #### The first four characters must be a

13. Ask the user to enter a user id in the following format: AAAA-#### The first four characters must be a-z and/or A-Z. The next four are numbers. example: RWVT-773314. Use regular expressions to verify the user id supplied by the user meets format above. If not, inform the user and ask them to retry or exit. 15. After verifying the user id meets the format, verify that one of the following user ids has been entered. 16. Only accept the following user ids: gdrt-8493, DBTF-6253, UyHt-8326, YYrv-5329, qzrb-826417. After successful entry, display a message stating, Thank you for entering your user id.

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