This is a UNIX script Using the c shell /bin/csh write the utility called myCalc
ID: 3681698 • Letter: T
Question
This is a UNIX script
Using the c shell /bin/csh write the utility called myCalc that satisfies the following specifications:
Usage: myCalc operand1 operator operand2
myCalc is a very simple calculator. operand1 and operand2 are integers. operator is the words plus, minus, div, and times. The operands and operators will be passed on the command line. Generate error messages if the operands are not valid or the operator is not valid. If no arguments are passed show the usage statement.
Example of what the command line will look like:
>myCalc 2 plus 3
>The answer is 5
Explanation / Answer
Unix code:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.