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

  Which sample will have lower resistivity and why

1. The electron concentration in the conduction band of a GaAs sample is 10^5/cm^3 at room temperature. Is it p type or n type, how do you know 2. Based on the Kronig-Penny model, would you expect the bandgap of a semiconductor to increase

  Explain relationship between air speed and deflection

The deflection of a pressure sensing diaphragm under large deflection conditions is non-linear with respect to the pressure difference across the diaphragm. using this feature to advantage, discuss how a linear relationship between air speed

  Determine output frequency for frequency division circuit

Determine the output frequency for a frequency division circuit that contains 12 flip-flops with an input clock frequency of 20.48 MHz.

  Describe the operation of the series rc circuit

Describe the operation of the series RC circuit. The discussion must address phase angle relationships of current and voltage. The answer must include the effect of source frequency on the voltage drops across the resistor and the capacitor at ver..

  Which is preferred if the target lifetime of the system

(Probability of negative lifetime is negligible) Lifetime of chip 2 is also a Gaussian RV with mean 22,000 and standard deviation 1000 hours. Which is preferred if the target lifetime of the system is (i) 20,000 hours and (ii) 24,000 hours

  Find a unity feedback control system with an unstable plant

Design a PD Controller G_c(s) = K_p + K_d*s using the root-locus method such that the closed-loop system has a damping ratio, zeta = 0.7 and a natural frequency, omega_n = 0.5 rad/sec.

  In how many ways can a class of 30 students select committe

In how many ways can a class of 30 students select a committe from the class that consists of a president, a vice president, a treasurer, and a secretary A. if any student may serve either of these roles but no student may serve in multiple roles ..

  Devise a circuit that could be used with a conveyor belt

Devise a circuit that could be used with a conveyor belt which is used to move an item to a work station. The presence of the item at the work station is detected by means of breaking a contact activated by a beam of light to a photo sensor.

  Calculate snr given a noise specification of 680nv

For a Wien-bridge oscillator (a) Given R = 50Kohm and C = 100nF what is the frequency of oscillation (b) Given a required frequency of oscillation of f = 10kHz and R = 8kohm, what should the value of C be

  Calculate the armature voltage to be applied in steady state

Plot the steady state torque-speed characteristic for Va = 100V, 60V, and 30V. Calculate the armature voltage to be applied in the steady state at the speed of 1500 rpm when the motor torque load require is 3 Nm.

  Why two data streams are coming serially to a system

Two data streams are coming serially to a system. These two streams are carefully observed and if considering any three bits from each stream, we observe that these two input streams are equal ; the FSM gives a signal to an alarm system.

  Does anyone has a homework related to calculate

Does anyone has a homework related to calculate: failure probability estimation of SRAM Bit-cell using matlab?

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