Question: PLEASE TYPE IN C PROGRAMMING PLEASE DO NOT USE AN ARRAY 2. You are creating a new account on a website and need to come

PLEASE TYPE IN C PROGRAMMING

PLEASE DO NOT USE AN ARRAY

2. 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 mike!FL 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.

1) Name your program username.c.

2) The user input ends with the user pressing the enter key (a new line character).

3) Use getchar() to read in the input. 4) You can use character handling functions such as isdigit and isalpha. Dont forget to include ctype.h if you use any character handling functions.

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!