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

  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