Write a simple awk statement that finds out the total sample

Assignment Help Electrical Engineering
Reference no: EM13268308

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

Reference no: EM13268308

Questions Cloud

What c standard library header file must be included : A function must be defined or declared above the locations in the source code file from where it is called. We declare a function by writing a function declaration (which is a statement so it ends with a semicolon). Another term for function decla..
The average number of collisions per cubic meter per second : the average number of collisions per cubic meter per second for the molecules of argon at 0 degree Celsius and 1 bar of pressure. (d) what values would be obtained at 1000 degree celsius and 1 bar? (e) At 0 degree celsius and 100 bar
Dimensions of wal marts operations and strategy : Explain/justify your analysis and conclusions for each line of data. In other words, if you had to select the analysis of only one line of data to support and justify your explanation elm Wal*Mart's competitive success
What is the price of a treasury strips with a face value : What is the price of a treasury STRIPS with a face value of $100 that matures in ten years and has a yield to maturity of 3.5%.
Write a simple awk statement that finds out the total sample : 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
What is thoman cash flow per share : Thomans preferred stock dividend is $15,000. Its weighted-average common shares outstanding were 250,000. What is Thoman cash flow per share?
What is the ending balance of retained earnings for engstrom : Engstrom Company began fiscal 2013 with a $40,000 balance in Retained Earnings. During 2013, its net income was $167,890 and it declared and paid dividends of $50,000. What is the ending balance of Retained Earnings for Engstrom?
What is the initial outlay required to fund project : You have been asked by the president of your company to evaluate the proposed acquisition of a new special-purpose truck. since you are not an expert on industrial vehicles, you hire a consulting firm to make recommendations.
Design op amp circuit to produce output vout : design op amp circuit to produce output vout which is related to inputs v1, v2 and v3 by expression vout= -(3v1+5v2+8v3). assume max permitted resistor value= 200k.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Stereotaxic neurosurgery for electrode implant

Utilizing the rat stereotaxic atlas in the course materials, devise a surgical plan for implanting a Michigan type array

  What is the motor efficiency as operated

What is the motor efficiency as operated?

  What is the characteristic equation of the system

The transfer function of a circuit is given by H(s)= 2s+4/4s^2+2s+2 a. Express the transfer function in a form in which the coefficients of the highest power of s are unity in both numerator and denominator.

  Combinational logic devices for specific purposes

Interpret manufacturer's data sheet to select appropriate combinational logic devices for specific purposes

  What is the measured period and frequency of the waveform

An oscilloscope shows the period of an ac waveform to be 3.5 horizontal divisions when the timebase control is set to "10 ms/Div". What is the measured period and frequency of the waveform

  Find the amount of time passes between the max energy

In a RLC circuit, the generator voltage varies in time, where the amplitude of e max= 1.2 volt and emf freq.= 0.5 Hz , which the max current is equal to the max current when the freq. of emf = 3.0 Hz, which is .00033 A.

  Design a circuit which performs error checking on a stack

A stack controller is a digital circuit in a computer that implements last in firstout (LIFO) storage for temporary data. It operates analogously to a stack of plates where you can put a new plate on the top of the stack or you can take a plate of..

  Write an instruction sequence to subtract the 6-byte number

Write an instruction sequence to subtract the 6-byte number stored at $800-$805 from the 6-byte store a $810-$805, and save the result at $900-$905

  Calculate the energy generated by the electric machine

a. The mass of an electric car is 900 kg including the passengers. A single motor mounted on the front wheels drives the car, and the radius of the wheel is 0.3 m. The car is going downhill at a speed of 50 km/hr, and the slope of the hill is 30 d..

  What is the ber at the output of the receiver in clear air

What is the BER at the output of the receiver in clear air conditions, and the average time between errors? Give your answer in years, days, or hours as appropriate. Assume an implementation margin of 0.5 dB.

  Determine what is the magnitude of the resultant force

Two forces, F1 and F2, act at a point. has a magnitude of 9.20N and is directed at an angle of 59.0 degrees above the negative x axis in the second quadrant. F2 has a magnitude of 6.00N and is directed at an angle of 52.6 degrees

  Design an integral controller

Improve the controller designed in part by introducing a mechanism for the disturbance compensation at the plant input. Illustrate advantage of the improved controller by applying the fast varying piecewise constant reference input vector and sinu..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd