LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-13-2022, 02:27 PM   #1
Tselisang
LQ Newbie
 
Registered: Apr 2022
Posts: 1

Rep: Reputation: 0
internal 3


SECTION A 20 MARKS
1. Assuming you have the following table format:
EMPLOYEE TABLE
NAME SURNAME AGE DEPARTMENT
Mpho Maama 41 Works
Lerato Seeiso 54 I.T
LipalesaNaleli 29 Administration

a. Your aim is to add a new member that just arrived. Create a single shell script that will have functions that:
(i) Insert/Add a new employee (Name, Surname, Age, and Department). [4 Marks]
(ii) Classify the employee as an adult if they are above the age of 21 otherwise, as under-age. [4 Marks]
(iii) Display the Names, Surnames, Ages and Departments of the employee you inserted. [2 Marks]

b. Lipalesa just moved to the I.T department, write a shell script to modify/change her department from Administration to I.T then display Lipalesa’s information with her new department [4 Marks]

c.
Write a shell script to display the week of the day based on the given number (1 for Sunday, 2 for Monday … 7 for Saturday) using both nested IF and CASE conditional statements. [6 Marks]
 
Old 04-13-2022, 02:31 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Welcome to LinuxQuestions.

Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning internal traffic based on destination IP to another internal IP - iptables opti2k4 Linux - Security 5 10-27-2013 02:56 PM
[SOLVED] 505- Internal server error - The server encountered an internal error or misconfigura physnastr Linux - Server 7 11-17-2011 04:57 PM
[SOLVED] Moved offices. External websites/internal ssh both work, but internal http doesn't. jasonws Linux - Networking 3 08-04-2011 03:26 PM
Copy an internal hard drive as backup? Restore an internal drive? Peufelon Linux - Hardware 2 06-15-2008 03:28 PM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration