4. Develop a shell script to add two integer numbers and show the result by Considering...
Fantastic news! We've Found the answer you've been seeking!
Question:
![4. Develop a shell script to add two integer numbers and show the result by Considering the following steps:](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/01/659bdd4ab0da7_1704803502051.jpg)
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
The question youve presented is asking for the creation of a shell script that accomplishes the foll... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
The average childcare cost in Toronto is $500 a week. Abby is a single mother in Toronto, who earns $25 an hour, and receives $800 a week in non-labour income. She chooses to work 45 hours a week....
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Let (x) = x 2 + 3x + 2 and g(x) = x + 1. Find each of the following. (a) (fg)(x) (b) (fg) (-2) (c) (+)(x) (d) ()(-2)
-
Play-Disc makes Frisbee-type plastic discs. Each 12-inch diameter plastic disc has the following manufacturing costs: Direct materials .......$1.67 Direct labor........ 0.56 Variable overhead ..........
-
The net revenue from a candy product called Mummies- Lite has averaged $15,000 per month for the past 12 months. If the value of (Xi X) 2 is $4,680,000, the standard deviation value is closest to:...
-
Develop an evaluation process to assess the results of training and development.
-
The Repo 105 transactions reduced Lehmans net leverage ratio from 17.8 to 16.1 at the end of fiscal 2007. Do you believe that was a material difference? Why or why not?
-
n measurement of provisions best estimate represents the amount that a company would pay be sent to the the: eaed Statement of financial position date a. b. Settleme date desde c. Payment date d....
-
Tuckered Outfitters plans to market a custom brand of packaged trail mix. The ingredients for the trail mix will include Raisins, Grain, Chocolate Chips, Peanuts, and Almonds costing, respectively,...
-
16 Skipped X-Tel budgets sales of $70,000 for April, $105,000 for May, and $100,000 for June. Sales are 60% cash and 40% on credit. All credit sales are collected in the month following the sale....
-
Caching. CPUs. Hard disk drives. Parallelism. Pipelining. RAM. Registers. Solid-state drives. Dinkleberg 1. (3 points) You know that neighbor who always one-ups you? Apparently, he just bought a...
-
Information for Question 1 and 2: The National Health Interview Survey is an annual national health survey of people living in about 35,000 randomly selected households in the United States. On the...
-
Q1. There is trampoline on the ground, and connected to spring of spring constant, k, on the bottom. You are holding a child of mass, M on a H tall building top (H is measured from the trampoline to...
-
SPSS for intermediate statistics extra problems solutions d. Approximately how much variance in consumers' tendency to purchase the product could be predicted from these variables? If you owned the...
-
A finance company uses the discount method of calculating interest. The loan principal is $5,000, the interest rate is 10%, and repayment is expected in two years. You will receive 4196.25 X from the...
-
^1 Use the returns data below for two stocks, construct a mean-variance efficient frontier. (1) Calculate the covariances of two assets (2) For each of the following weights, compute the expected...
-
Determine the center and radius of each circle. Sketch each circle. 4x 2 + 4y 2 9 = 16y
-
Sally and Charles Heck received the following dividends and interest during 2012: Assuming the Hecks file a joint tax return, complete Schedule B of Form 1040 (on page 2-33) for them for the 2012 tax...
-
Leslie and Leon Lazo are married and file a joint return for 2012. Leslie's Social Security number is 466-47-3311 and Leon's is 467-74-4451. They live at 143 Snapdragon Drive, Reno, NV 82102. For...
-
Calculate the amount of the child and dependent care credit allowed for 2012 in each of the following cases, assuming the taxpayers had no income other than the stated amounts. a. William and Carla...
-
Construct and interpret a 95% confidence interval for the unknown true slope of the regression line.
-
Construct and interpret a 95% prediction interval for a randomly chosen player with a 0.300 batting average. Is this prediction interval useful?
-
What is the size of the typical error in predicting the number of home runs, based on the players batting average?
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App