Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are creating a new account on a website and need to come up with a username. The username has the following requirement: 1) The

image text in transcribed

You are creating a new account on a website and need to come up with a username. The username has the following requirement: 1) The username has at least 5 characters, and at most 10 characters 2) It must contain alphabetic letters (upper or lower case), digit or underscore, but no space or other punctuations. For example, mike_FL is valid and mikelFL is invalid Write a program that takes a word entered by the user, check if the word is a valid username. If the input is valid, print a confirmation statement. If it is not, print a statement that the input is not valid. Name your program username .c. The user input ends with the user pressing the enter key (a new line character). Use getchar() to read in the input. You can use character handling functions such as isdigit and isalpha. Don't forget to include ctype. h if you use any character handling functions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What does the book value of shares represent? How is it calculated?

Answered: 1 week ago

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago