Question: 1. Write a calculator script using if and elif statements called calc-yourlastname.sh that will add ( add ), subtract ( sub ), multiply ( mul
1. Write a calculator script using if and elif statements called calc-yourlastname.sh that will add (add), subtract (sub), multiply (mul) and integer divide (div) two numbers. The script should take 3 arguments from the command line and produce the output.
The command line syntax is # ./scriptfile operation number1 number2. 20 points
Integer division will yield only the quotient and no remainder.
You can use `expr expression` or $((expression)) to perform your math
For example, your results should appear like:
[root@localhost chap7]# ./calc-hagan.sh add 3 2
3 + 2 = 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
