Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Develop a shell script to add two integer numbers and show the result by Considering the following steps: a) Prompt the user to
4. Develop a shell script to add two integer numbers and show the result by Considering the following steps: a) Prompt the user to enter 2 integer numbers between the range of 10 and 20 (inclusive) b) If the numbers are not in the range it will keep asking "Numbers should be in the range of 10 to 20! Try again:" until a valid rang of numbers are entered. c) Then the valid 2 integer numbers will be added and it will print "The sum of num1 and num2 is sum" (replace num1, num2 and sum as the value of the variables) d) Your should check your program with the following sample inputs: Enter 2 numbers in the range of 10 to 20:5 19 Number should be in the range of 10 to 20! Try again: 3 12 Number should be in the range of 10 to 20! Try again: 12 9 Number should be in the range of 10 to 20! Try again: 7 12 Number should be in the range of 10 to 20! Try again: 12 15 The sum of 12 and 15 is: 27
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The question youve presented is asking for the creation of a shell script that accomplishes the foll...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started