Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a shell script to display arguments to script. Enter any three input arguments to script and display. (e.g. > arg1 arg2 arg3 o/p: argument

image text in transcribed
Write a shell script to display arguments to script. Enter any three input arguments to script and display. (e.g. > arg1 arg2 arg3 o/p: argument 1 is arg1. argument2 is arg2. argument3 is arg3.) - Enter 5 integer numbers as arguments to shell script and obtain the highest, the lowest and the average number. e.g. i/p: >1122334455 o/p: Highest: 55, Lowest:11, Average:33). - Perform basic operation addition, subtraction, multiplication and division onto two input integers. Use three arguments (value1, operator, value2) for shell script. (e.g. i/p: 4+3 o/p:7, i/p: 43 o/p:1>13 3 o/p:39, i/p: >13/4 o/p: 3 ). - Compute the factorial of an entered integer (e.g. i/p: >5 o/p: 120 ). - Write a shell script to reverse a given positive integer. (e.g. i/p: >123 o/p:321, i/p: >1230 o/p:321)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

Describe your ideal working day.

Answered: 1 week ago

Question

Describe the job youd like to be doing five years from now.

Answered: 1 week ago