Question: Write a C program that checks the validity of a password entered by the user. a) In the main function, declare an array of characters

Write a C program that checks the validity of a password entered by the user. a) In the main function, declare an array of characters that can hold up to 50 characters, and then ask the user to enter and store a password in that array. b) In the main function, check whether the entered password is valid according to the following: Its length is between 10 to 15 characters It contains alphabets only C) Print out the password and tell the user whether it is valid, or not, based on the check in part b. Hints: Test out the program by checking the following strings *Abc Not valid, because its length is less than 10 "abcxyz123gh". Not valid abcdefhjklmn Valid Consider the follewing structure definition struct Course char Instructor(10); // first name only char department[5]: int code: int capacity 1) Create an array called Courses of type Course and size 5. 2) Read the elements of the array Courses from the keyboard, 3 Sorts the array Courses in ascending order according to the capacity Print the tray elements after soling
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
