0% found this document useful (0 votes)
9 views

Name:Amit Rawal Enrollment - No:21SOECE11635 Div-CE-D

The document contains assignments for a student named Amit Rawal to write shell scripts. The assignments include writing scripts to display number series using loops, check if a number is prime or not, find the factorial of a number, check if a number is Armstrong or a palindrome, perform arithmetic operations with command line arguments, find averages and totals, swap numbers, and determine if a year is a leap year.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Name:Amit Rawal Enrollment - No:21SOECE11635 Div-CE-D

The document contains assignments for a student named Amit Rawal to write shell scripts. The assignments include writing scripts to display number series using loops, check if a number is prime or not, find the factorial of a number, check if a number is Armstrong or a palindrome, perform arithmetic operations with command line arguments, find averages and totals, swap numbers, and determine if a year is a leap year.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Name :Amit Rawal

Enrollment_No:21SOECE11635
Div-CE-D

1.Write a shell script to display the 1 to 10 series using For Loop.

2.Write a Shell Script to check whether the given number is prime number or not.
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

3.Write a shell script to display the 1 to 25 using while Loop.

4.Write a Shell Script to generate following output:

Enter the First value : 5

Enter the Second Value : 15

Output is : 5 6 7 8 9 10 11 12 13 14 15
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

5. Write a Shell Script to generate following output:

Enter the First value : 1

Enter the Second value : 10

Enter the incremented value : 2

Output is : 1 3 5 7 9

6. Write a Shell script to find the factorial of a number.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

7.Write a Shell script to check if the number is Armstrong or Not.

8.Write a Shell script to check the number is Palindrome or Not

9.Write a Shell script that display a given number in reverse order.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a SS to total of two numbers using command line argument


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a SS for take two values and perform addition, subtraction,


multiplication and division operation ,finally generate appropriate
answer using command line argument
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a shell script to find total and average of three values.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell Program to swap two numbers with and without using
third variable

Write a Shell Program to find greater value among two numbers.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a shell script to find odd and even number.

Write a shell script to print the day when the user enters a day number.
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a shell script to input two numbers in command prompt and perform arithmetic
operation as per the choice given by user using switch case.
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell Program that prints the grades of a student based on the marks entered
by user.
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell Program to find whether the year entered by user is leap year or not.

Write a shell script to display the 1 to 10 series using For Loop.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell Script to check whether the given number is prime number or not.

Write a shell script to display the 1 to 25 using while Loop.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell Script to generate following output:


Enter the First value : 5
Enter the Second Value : 15
Output is : 5 6 7 8 9 10 11 12 13 14 15

Write a Shell Script to generate following output:


Enter the First value : 1
Enter the Second value : 10
Enter the incremented value : 2
Output is : 1 3 5 7 9
Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell script to find the factorial of a number.

Write a Shell script to check if the number is Armstrong or Not.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

Write a Shell script to check the number is Palindrome or Not

Write a Shell script that display a given number in reverse order.


Name :Amit Rawal
Enrollment_No:21SOECE11635
Div-CE-D

You might also like