Write an AWK program that takes as its input the salary_file.txt file(you can download it from Blackboard -> Useful Links -> Files to practice AWK and SED). The salary_file.txt consists around 150 records, each record have three fields: name, salary per hour, and hours worked — fields 1, 2, and 3, respectively. Save your AWK program in a file. Name the file according to our standard convention but with .awk extension, hence name it As5_yourName.awk.Do not forget to have comments inside of your AWK file. Your AWK program should have all three segments: BEGIN, main (pattern/action), and END blocks 1.In the BEGIN segment a.print your first name and degree that you pursue (e.g., Bob, BTech in Networking and Security) b.declare/introduce/initiate variables that you are going to use in parts 2. and 3. of this Task 2.In the main block/segment, print to screen/terminal a.only names and hours worked of employees that earned more than $400.00 b.names and salary per hour of each employee with name starting with capital B, C, and the same letter that your last name starts with 3.In the END segment, print to screen/terminal a.total number of employees b.cumulative salaries earned by all employees c.name of the employee that worked the least amount of hours d.name of the file that AWK (this program) is processing Make sure to generate meaningful print statements. In other words, do not print only variables’ value but also some explanations what are you printing.
Write an AWK program that takes as its input the salary_file.txt file(you can download it from Blackboard -> Useful Links -> Files to practice AWK and SED).