Linux Assignment 4
Linux Assignment 4
Write a shell script to create a menu driven program for adding, deletion or finding a record in a
database. Database should have the field like rollno, name, semester and marks of three
subjects. Last option of the menu should be to exit the menu.
Write a Linux shell script to accept 10 number and tell how many are +tive, -tive and zero.
Write a shell script to accept five number and display max and min value.
Write a shell script to print given number’s sum of all digits (eg. If number is 123, then it’s sum
of all digits will be 1+2+3=6)
Create a script to
Create user , Delete user , Create group , delete Group using case
Shell Script to compute the sum of the first 10 natural numbers.
Expected Output :
The first 10 natural number is :
1 2 3 4 5 6 7 8 9 10
The Sum is : 55
Shell Script to display n terms of natural numbers and their sum.
Test Data : 7
Expected Output :
The first 7 natural number is :
1234567
The Sum of Natural Number upto 7 terms : 28
Shell Script to read 10 numbers from the keyboard and find their sum and average.
Test Data :
Input the 10 numbers :
Number-1 :2
...
Number-10 :2
Expected Output :
The sum of 10 no is : 55
The Average is : 5.500000