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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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