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

  Compute the power and energy for the signals

Compute the energy of the following signals: 1) x(t) = e^-(a|t|) for a > 0 (Notice the absolute value on t) 2) x(t) = (1 - |t|)rect(t/2) (Notice the absolute value on the first t)

  Find number of channels that can be simultaneously supported

A cellular operator using the FDMA technique is allocated a total spectrum of 25 MHz. The system has a channel bandwidth of 60 kHz. It also uses a guard band of 20 kHz. Compute the number of channels that can be simultaneously supported in this wi..

  Indicate the required value of each voltage source

Your circuit should consist of only the following elements: one 1 ohm resistor, one 2 ohm resistor, three 10 ohm resistors, three ideal constant voltage sources, and three ideal ammeters,

  Calculate the frequency response of the system at 25 hz

The transfer function of a discrete time system is given by H H(z) = z/(z-0.5) The system has a sampling rate of 100 Hz. Calculate the frequency response of the system at 25 Hz input frequency as a complex number in both rectangular and polar f..

  Design a signal conditioning circuit using op amps

A wind speed sensor generates an output voltage that ranges between 10 to 55 mV when the wind speed varies from 0 to 120Km/Hr.The output of the sensor is connected to an Analog to Digital Converter (ADC) through a signal conditioning circuit.

  What is the modulation used to transmit hdtv signals

What is the modulation used to transmit HDTV signals over the air in US terrestrial broadcasting? What is the transmitted bit rate and the compression method?

  Calculate the minimum number of pn bits required

Calculate the minimum number of PN bits required for each frequency hop for an FHSS system that employs a total bandwidth of 800 MHz and an individual channel bandwidth of 200 Hz.

  Determine the power output and the annual energy produce

A 1.2 MW wind turbine has a rotor diameter of 64 m. the turbine operates in an area with an average wind velocity of 7.5 m/s and the air density of 1.18 kg/m^3. the turbine power coefficient including the unit efficiency is 42.8 percent.

  Determine what is the angle of the middle one

Unpolarized light is incident on three polarizers: The first making an angle of 0 degrees with the vertical; the second making an angle of degrees with the vertical; and the last one making an angle of 90 degrees with the vertical.

  Determine number of bit that must be specified for converter

A successive approximation A/D converter with range of 0 to 5 volts and a resolution of 0.05 volts is specified. It will be clocked at 500 KHz. a. Determine the number of bits that must be specified for this converter. b. Determine the t..

  Calculate the bandwidth of the closed-loop transfer function

In a unity feedback system, the open-loop transfer function is of the form G_ol(s)=k/(1+s/Omega_p) Calculate the bandwidth of the closed-loop transfer function. How does the bandwidth depend on k and Omega_p

  Determine the poles and zeros of the filter

Design a filter for a biomedical instrument to eliminate DC (f = 0), 500 Hz tone, and its corresponding harmonics. The system sampling rate is 2,000 Hz. Place all the required poles at the origin to obtain a FIR filter.

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