A University have decided to provide each employee a personal contact number. But they want to flag each number such that a program can identify the category it belongs to. 1. Any number which does not have 11 digits is INVALID 2. Any number in which the 5th digit is in the range O to 3 belongs to the department of CSE 3. Any number in which the 5th digit is in the range 4 to 6 belongs to the department of EEE 4. Any number in which the 5th digit is in the range 7 to 9 belongs to the department of TEXTILE 5. Any number in which the 9th digit is 4 belongs to LECTURER 6. Any number in which the 9th digit is 5 is belongs to SENIOR LECTURER 7. Any number in which the 9th digit is 6 is belongs to ASSOCIATE PROFESSOR 8. Any number in which the 9th digit is 7 is belongs to PROFESSOR 9. Any number in which the 6th and 8th digits are 0 and O respectively belongs to PROGRAM COORDINATOR 10. Any number in which the 6th and 8th digits are 9 and 9 respectively number is belongs to CHAIR PERSON Now write a shell program function using switch that takes the contact number as input and returns the output. Sample Input: 01722080584 Sample Output: Dept. of CSE, SENIOR LECTURER & PROGRAM COORDINATOR

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
A University have decided to provide each employee a personal contact number. But they want to flag
each number such that a program can identify the category it belongs to.
1. Any number which does not have 11 digits is INVALID
2. Any number in which the 5th digit is in the range 0 to 3 belongs to the department of CSE
3. Any number in which the 5th digit is in the range 4 to 6 belongs to the department of EEE
4. Any number in which the 5th digit is in the range 7 to 9 belongs to the department of TEXTILE
5. Any number in which the 9th digit is 4 belongs to LECTURER
6. Any number in which the 9th digit is 5 is belongs to SENIOR LECTURER
7. Any number in which the 9th digit is 6 is belongs to ASSOCIATE PROFESSOR
8. Any number in which the 9th digit is 7 is belongs to PROFESSOR
9. Any number in which the 6th and 8th digits are 0 and O respectively belongs to PROGRAM
COORDINATOR
10. Any number in which the 6th and 8th digits are 9 and 9 respectively number is belongs to CHAIR
PERSON
Now write a shell program function using switch that takes the contact number as input and returns the
output.
Sample Input:
01722080584
Sample Output:
Dept. of CSE, SENIOR LECTURER & PROGRAM COORDINATOR
Transcribed Image Text:A University have decided to provide each employee a personal contact number. But they want to flag each number such that a program can identify the category it belongs to. 1. Any number which does not have 11 digits is INVALID 2. Any number in which the 5th digit is in the range 0 to 3 belongs to the department of CSE 3. Any number in which the 5th digit is in the range 4 to 6 belongs to the department of EEE 4. Any number in which the 5th digit is in the range 7 to 9 belongs to the department of TEXTILE 5. Any number in which the 9th digit is 4 belongs to LECTURER 6. Any number in which the 9th digit is 5 is belongs to SENIOR LECTURER 7. Any number in which the 9th digit is 6 is belongs to ASSOCIATE PROFESSOR 8. Any number in which the 9th digit is 7 is belongs to PROFESSOR 9. Any number in which the 6th and 8th digits are 0 and O respectively belongs to PROGRAM COORDINATOR 10. Any number in which the 6th and 8th digits are 9 and 9 respectively number is belongs to CHAIR PERSON Now write a shell program function using switch that takes the contact number as input and returns the output. Sample Input: 01722080584 Sample Output: Dept. of CSE, SENIOR LECTURER & PROGRAM COORDINATOR
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY