The document describes a C program that validates a user-entered password by checking it against 4 conditions in 4 child processes created by the parent process. The parent process gets the password, creates the child processes, waits for their results, and prints whether each condition and the overall password is valid or invalid. Each child process is responsible for checking one condition and returning its result.
In this assignment, you are supposed to write a C program to find wh.pdf
1. In this assignment, you are supposed to write a C program to find whether a password entered by
user is a valid one or not. The validity of a password depends on 4 conditions and all of them
must be met (satisfied)! These conditions are:
- First 2 characters cannot be digits.
- It should contain at least 1 upper-case letter.
- It must contain at least 2 digits.
- It should include one of these symbols at least once: _, -, @, ?, !
Your program must create 4 child processes where each one is responsible for checking one of
the above conditions. The responsibilities of the Parent and Child processes are: Parent Process
(main function):
Gets a password (as a string) from the user.
Then, creates 4 child processes to check each condition.
Waits for all child processes before terminating.
Checks the result of each Child process and then prints Condition OK or Condition FAILED
accordingly.
Note that the order of these messages is NOT important!
Finally, prints Password is valid if all conditions are ok. Otherwise, it must print INVALID
Password!.
Each Child Process:
Checks only 1 of those conditions. Lanoriakustrale funtili: - Sen vicanadeadied findaine. -
Wairti diekbipreume wfrevrius redie7al Prerw - Checasbly I criestribis.