Other Engineering Answers

Questions: 881

Answers by our Experts: 418

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

How many elementary operations are used in the following algorithm?
Step 1 Set a =1, b = 1, c = 2, k = 1
Step 2 While k < n
(a)replace c with a+b
(b)replace a with b
(c)replace b with c
(d)replace k with k + 1
endwhile
Step 3 Print b
write separate functions arithmetic_mean(), rms_average(), harmonic_mean(), geometric_mean() which takes the data array as the argument and compute the respective quantities. Write a script averages which take two values xlow and xhigh and generate 10000 random numbers in
the range [xlow…xhigh], and calls the appropriate functions to compute arithmetic mean (average), rms average, geometric mean and harmonic mean.
Write a single program that calculates the arithmetic mean (average), rms average, geometric mean and harmonic mean for a set of n positive numbers. Your program should take two values xlow and xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic mean (average), rms average, geometric mean and harmonic mean.
TA ZC 164- Computer Programming
Assignment – 1
Deadline: 29/ September/2014
Question-1:
The Birthday Problem: The birthday problem is stated as follows:
If there is a group of n people in a room, what is the probability that two or more of them having same birthday? It is possible to determine answer to this question by simulation. (Hint: You can generate random dates, n times and determine the fraction of people who born in a given day). Write a function that determines the answer to this question by simulation. The program you write can take n as the input and prints out the probability that two or more of n people will have the same birthday for n=2,3,4…. 40
Question-2:
Write a single program that calculates the arithmetic mean (average), rms average, geometric mean and harmonic mean for a set of n positive numbers. Your program should take two values xlow and xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic mean (average), rms average, geometric mean and h
1. A semiconductor laser has a total current that comprises a bias current I(dc) and a small
signal ac current i(ac). The laser threshold current is I(th) = 50 mA. When I(dc) = 75 mA and
i(ac) = 0, the laser output power is P(o) = 2.5 mW.
(a) What is the ac component of the modulated optical power at low frequencies when the laser is driven by a small signal current i(ac) having a peak value of 10 mA?
(b) By means of a sketch, show how you expect the ac component of the modulated
optical power to behave as the frequency of the driving current w(omega) is increased but its amplitude is maintained constant.
1. A semiconductor laser has an optical cavity length of 350 μm and an index of refraction of 3.4.
(a) At what wavelengths near 1.55 μm would you expect this laser to emit optical output power?
(b) What is the spacing, in μm, between these different modes of the laser output?

2. A semiconductor laser diode is characterised by measuring its light-current behaviour.
The results show that it emits an optical power output of 2 mW when the diode
current is 50 mA, and its output increases to 4.5 mW when the current is 55 mA.
(a) What is the threshold current of the laser?
(b) When the current is modulated with a square wave digital type signal, with values
I(ave) = 50 mA, I(min) = 40 mA, and I(max) = 60 mA, what will be the maximum and
minimum output optical power levels?
1. A LED optical source operating with a current of 100 mA generates light at a
wavelength of 1.3 μm, with a total quantum efficiency of 0.02. The diode obeys the
normal diode equation I = I(s)[exp(V/V(T)) – 1], where V(T) = 0.026 V = kT/q is the thermal
voltage. When reversed biased, the diode is found to have a reverse saturation current
of 1 pA.
Calculate the power efficiency of this diode, defined as the optical output power
divided by the electrical input power.
I WOULD LIKE TO DO A FINAL YEAR MECHANICAL ENGINEERING PROJECT IN PIPING..

KINDLY GIVE ME SOME IDEAS AND OTHER DETAILS
1. write algorithm,flow chart and pseudocode to determine whether given year is leap year or not
2. compute and dISPLAY x raise to the power n for a given integer x
3. to determine whether given number is armstrong or not
Write a single program that calculates the arithmetic mean (average), rms average, geometric mean
and harmonic mean for a set of n positive numbers. Your program should take two values xlow and
xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic
mean (average), rms average, geometric mean and harmonic mean.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS