Write a simple awk statement that finds out the total


1. Write a simple awk statement that finds out the total number of samples of items that are gold, the total weight of these gold items and the total value of these gold items based on Monday September 30th price for GOLD and the difference in value from gold's 52 week high (which you can get from the financial commodities pages wall street journal online) using the file coins.txt.

2. Write a simple awk statement that finds out the total number of samples of items that are silver, the total weight of these silver items and the total value of these silver items based on Monday September 30th price for SILVER use file coins.txt.

3. Write a simple sed statement that substitutes the silver items tag with the tag bronze for the first and last instance only.

4. Write a PERL script that multiples the numbers passed to it as arguments, then computes the factorial of the number of arguments and displays the results. For example, if you name the PERL program MultFac, and you type

>perl -w MultFac.pl 1 2 4 4

The program would display the following since the number of arguments is 4

The program is called: MultFac

The number of arguments is: 4

The arguments are: 1 2 4 4

The multiplication result is: = 32

The factorial of the number of arguments is: = 24

The program should be able to take in up to 6 arguments as multiplication and factorial values

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Write a simple awk statement that finds out the total
Reference No:- TGS0607022

Expected delivery within 24 Hours