Operating Systems Lab Assignments - Problem Statements
Operating Systems Lab Assignments - Problem Statements
List of Programs
1.2 Write a BASH shell script to calculate final velocity (v) of an object,
where an initial velocity (u), acceleration (a) and time duration (t) is given
as an input. The formula that will be used is v = u + a*t.
1.3 Write a BASH shell script to check that a number that is taken as input is
an even number or odd number.
1.4 Write a BASH shell script to check that a number that is taken as input is
divisible by 3 or not
1.5 Write a BASH shell script to find the factorial of a given number.
1.6 Write a BASH shell script to check that the given number is prime or not.
1.7 Write a BASH shell script to display all prime numbers in between 1 to
N. The value of N is taken as input from the user.
1.8 Write a BASH shell script to find and display the sum of the following
series (The value of N is taken as input from the user)
1 + 2! + 3! + 4! + 5! + 6! + … + N!
1.9 Write a BASH shell script to count and display numbers of files and
directory present in the current directory.
1.10 Write a BASH shell script to copy files only from the current directory to
another directory. The name of the destination directory is to be taken as
an input.
1.11 Write a BASH shell script to find largest and smallest elements of a given
array.
1.12 Write a BASH shell script to find sum of all elements of a given array.
Sample Record:
101 Raj Kumar Delhi Manager 60000 Data_Analytics ERP
2.1 Create and execute AWK script to display EMP Id, Name, location, and
Designation of employees having designations as ‘Manager’.
2.2 Create and execute AWK script to display EMP Id, Name, specialization,
and location of employees who are specialized in Java Programming and
are working at Delhi or Pune locations.
2.3 Create and execute AWK script to display EMP Id, Name, location,
Designation, and Joining Month, Joining_Year of all those employees
who joined after Jan 2000 but before December 2005.
2.4 Create and execute AWK script to display all fields of all those employees
who joined the organization on the net salary in between 45000-65000,
during the period Jan 2000 to December 2005.
2.5 Create and execute AWK script to display all fields of the employee
getting the highest salary at the Delhi location.
4 Write a ‘C’ program using ‘gcc’ compiler to extract PID of parent and
child processes. Child process is to be created using fork() system call.