Calculates the average of the contents of the data array

Assignment Help Electrical Engineering
Reference no: EM13265012

What does the following code do?

double calc( double data[10][10] )
{
double value = 1;
for(int i = 0; i < 10; i ++)
for(int j = 0; j < 10, j += 2)
value *= data[i][j];
return value;
}


a) Calculates the average of the contents of the data array
b) Calculates the product of the contents of the data array
c) Calculates the product of the elements of the even rows of the data array
d) Calculates the product of the elements of the even columns of the data array

Reference no: EM13265012

Questions Cloud

Compute the pressure and temperature : Calculate the pressure and temperature at which 1.0 mol of H2O, HCl, and C6H6 corresponds to the same states as 1.0 mol of CH4 at 2.00 atm and 298
What is the best estimate of the nominal interest rate : what is the best estimate of the nominal interest rate on new bonds? Round your answer to two decimal places.
What is the angular speed of the beam : The beam emerging from a ruby laser (wavelength 694.3 nm) passes through a circular aperture 4.7 mm in diameter. If the spread of the beam is limited only by diffraction, what is the angular speed of the beam
What is the firm before-tax cost of debt : The Green Balloon issued 20-year zero coupon bonds 4 years ago. Currently, these bonds are selling at 32.8 percent of face value of $1,000. The tax rate is 35 percent.
Calculates the average of the contents of the data array : a) Calculates the average of the contents of the data array b) Calculates the product of the contents of the data array c) Calculates the product of the elements of the even rows of the data array d) Calculates the product of the elements of the even..
What is the acceleration of the falling block : The pulley in the illustration is a uniform disk of mass 2.8 kg and radius 0.24 m, which is free to rotate without friction. What is the acceleration of the falling block
What is their yield to maturity : Thatcher Corporation's bonds will mature in 20 years. The bonds have a face value of $1,000 and an 12% coupon rate, paid semiannually. The price of the bonds is $850. The bonds are callable in 5 years at a call price of $1,050. Round your answers ..
Determine how many samples are in vector a-b and x : Consider the following MATLAB code: a = 0:(1/9000):4; % vector of time samples b = 100*a; % instantaneous frequency x = sin(4*pi*b.*a); (a) How many samples are in vector a, b, and x, respectively
Representatives to develop a health insurance strategy : What are the three most important issues on which you will need to build consensus to develop an agreement? Why it will be important for the GM and union representatives to agree? What alternative issues do you think the union might consider importan..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Design of a shunt regulator fed from a 15 volts supply

a zener diode exhibits a constant voltage of 5.6 volts for currents greater than five times the knee current.Izk is specified to be 1 ma. the zener is to be used in the design of a shunt regulator fed from a 15 volts supply .

  What number when multiply by us national debt equals to cost

To put this number into perspective, on June 20, 2002 the US national debt was $6.1e12, which is about $21,000 for each of the 288 million US citizens. What number when multiplied by the US national debt equals the cost to toast the bread.

  Design a 3 rd order high - pass butterworth filter

Design a 3 th order high - pass Butterworth filter with a High Frequency gain of 20 DB and a cutoff frequency of 20 rad/s. 2) Using MATLAB, plot the frequency respon se of this filter, and the location of the filter poles.

  Find the permittivity of a parallel-plate capacitor

Find the permittivity of a parallel-plate capacitor if its capacitance is 100 ?F, the dimension of each rectangular plate is 1cm by 0.5cm, and the distance between the plates is 1mm.

  Derive an expression for the built-in voltage

Consider a p-type semiconductor substrate with Na =10^15 cm^-3. A region of heavily p+ doped material is formed by ion implantation as shown in the sketch below.Derive an expression for the built-in voltage under equilibrium conditions.

  Processor development

Explain the process of processor development

  How the packet moves from device to device through network

Imagine a network layer packet that travels from one host to another host across multiple local area networks interconnected by routers, Explain how the packet moves from device to device through the network.

  Calculate the value required for the resistor labeled r

On a breadboards, hook up an IR LED to provide an infrared light source for signaling the phototransistor as shown in Figure 2 below. Use a pushbutton switch to turn the IR LED on and off.

  Discuss the sequence of actions that occur in the operation

Discuss the sequence of actions that occur in the operation of an automatic washing machine. Indicate which actions are time-driven and which actions are event-driven.

  How sensitive is the ror to the salvage value

You are evaluating the feasibility of adding an injection molder to fabricate plastic sporks (everybody’s favorite harmless utensil) for the US Facility for the Criminally Insane. An injection molder will cost $1,200,000 installed.

  Find electric field strength both inside nd outside cylinder

An infinitely long cylindrical dielectric of radius b contains charge within its volume of density ρv=aρ^2, where a is a constant. Find the electric field strength, E, both inside and outside the cylinder.

  Consider a communications channel with a passband

Consider a communications channel with a passband of 3 kHz to 27.4 kHz. A modem will be connected to this communications channel and the modem will operate with a signaling rate that is 0.56 the maximum allowable signaling rate for this communicat..

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