Question: Create a script named io.sh that performs the following tasks; Accepts a name and 3 integers as arguments Calculate the average of the three numbers

Create a script named io.sh that performs the following tasks;

  1. Accepts a name and 3 integers as arguments
  2. Calculate the average of the three numbers
  3. Output the data in a table format as shown in the example below

Example

example@general:~$ ./io.sh "Bob" 12 14 15 Name 1st 2nd 3rd Average Bob 12 14 15 13

Remember to include the #! line in your submission.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!