Determine the value of the two items multiplied — Electrical Engineering

Determine the value of the two items multiplied — Electrical Engineering

1. Write a simple shell script called mathmagic that takes two arguments in at call time and returns to the stdout the value of the two items entered, the value of the two items added together, the value of the two items subtracted (first – second), the value of the two items multiplied.

2. Augment the first shell script of problem 1, so that it checks if the 1st number is smaller than the second number, do not do the subtract, but instead output a message indicating the values will result in a negative value.

3. Augment the simple shell script of problem 1 so that tests the number of values inputted and returns a message if the number of arguments is more than 2, but still performs the operations (i.e. add all, subtract all, multiply all).

4. Write a c shell script program called TodaysDate that takes three arguments – a month string such as OCT, a day number such as 07, and a year number such as 2000 – and returns the number of days from JAN 1 1900 to the date.

> TodaysDate oct 20 1901

The program would display the following since the arguments are oct 20 1901

> The programs name is TodaysDate

> The number of days since JAN 1 1900 to OCT 20 1901 is: 660

Order from us and get better grades. We are the service you have been looking for.