Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 0 6 ( 1 5 points ) Task 0 7 ( 3 0 points ) Write a Bash script that will take in two
Task points Task points
Write a Bash script that will take in two numbers and an operator as input and then
perform the given operation. It should be able to handle the following operations:
adding, subtracting, multiplying, dividing, exponentiation, and modulo.
Note: All operations must work when tested, not just add. Be sure to use the line
spacing as indicated.
Write a Bash script that will take in two numbers as input and add them together
Expected input use the actual name for your script:
$ scriptsh
Enter the first number:
Enter the second number:
Expected output:
The sum of and is Have a nice day!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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