Question: This is in UNIX You are to write a shell program (script) to do the following. Display following menu: 1 - add two numbers 2
This is in UNIX

You are to write a shell program (script) to do the following. Display following menu: 1 - add two numbers 2 - subtract two numbers You are to write a shell program (script) to do the following. Display following menu: 1 - add two numbers 2 - subtract two numbers 3 - multiply two numbers 4 - divide two numbers Enter your choice: Enter your two numbers: The answer is: READ the users choice of operations, then read the two numbers the user enters. Based upon the users choice, and using the test operator, calculate the users answer. Keep in mind such things as invalid input, illegal math operations, friendly user interaction, etc. Note this will require week 10 class info. 3 - multiply two numbers 4 - divide two numbers Enter your choice: Enter your two numbers: The answer is: READ the users choice of operations, then read the two numbers the user enters. Based upon the users choice, and using the test operator, calculate the users answer. Keep in mind such things as invalid input, illegal math operations, friendly user interaction, etc. Note this will require week 10 class info
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
