( Use C programming to solve this problem) Again, you have lost your USIS password!! You went to the registrar office and requested for a new password. This time, you need to follow some rules to set your password. Otherwise, they won't change it. The rules are: At least one lowercase letter At least one uppercase letter At least one digit (0-9) At least one special character (_ , $, #, @) Your task is to find whether a given password follows all those rules. If it breaks any rule, you have to print “Lowercase Missing”, “Uppercase Missing”, “Digit Missing” or “Special Missing” respective to the missing case. For more than one rule break, print all the rules that were broken (order doesn't matter). If the password is ok, print “OK”.   Sample Input: BR@CUspring bracuspring BR@CU20spring22 Sample Output Digit missing Uppercase character missing, Digit missing, Special character missing OK

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 7E
icon
Related questions
Question

( Use C programming to solve this problem)
Again, you have lost your USIS password!! You went to the registrar office and requested for a new password. This time, you need to follow some rules to set your password. Otherwise, they won't change it. The rules are:

  • At least one lowercase letter
  • At least one uppercase letter
  • At least one digit (0-9)
  • At least one special character (_ , $, #, @)

Your task is to find whether a given password follows all those rules. If it breaks any rule, you have to print “Lowercase Missing”, “Uppercase Missing”, “Digit Missing” or “Special Missing” respective to the missing case. For more than one rule break, print all the rules that were broken (order doesn't matter). If the password is ok, print “OK”.

 

Sample Input:

  • BR@CUspring
  • bracuspring
  • BR@CU20spring22

Sample Output

  • Digit missing
  • Uppercase character missing, Digit missing, Special character missing
  • OK
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning