Write function called balloon that will accept single value

Assignment Help Electrical Engineering
Reference no: EM13253630

Write a function called Balloon that will accept a single variable named S. The function should replace S with the square of S and repeat this process until S is either greater than 10^15 or less than 10^-15. The function should return a value Q containin the number of times S was squared during this process.

Examples:

If S = 10, Q =3 (S equals 10^16 after the third square).

If S =0.1, Q=4 (S equals 10^-16 after the fourth square).

If S = 3, Q =5 (S equals 1.853 x 10^15 after the fifth square).

Reference no: EM13253630

Questions Cloud

Which is probably the most challenging to manage : Of the two main resources (human and capital), which is probably the most challenging to manage? Why? Explain the positives and negatives associated with utilizing independent contractors for your projects.
Compute the irradiance of the wave : Consider a harmonic, electromagnetic plane wave traveling along a line from the origin to the point (3,5,6). It is linearly polarized , Compute the irradiance of the wave
Write a response to the journal : Write a 150 words in response to the journal - Beowulf's good qualities according to the narrator
Which selection approach is most common selection method : Which selection approach is probably the most common selection method?
Write function called balloon that will accept single value : Write a function called Balloon that will accept a single variable named S. The function should replace S with the square of S and repeat this process until S is either greater than 10^15 or less than 10^-15.
Design a performance appraisal form for a position : Design a performance appraisal form for a position or targeted job for which you have some firsthand knowledge. First be clear about the purpose of the assessment process
What will be the last number the mummy will add : A mummy picks up a calculator and starts adding odd whole numbers together, in order: 1+3+5+... etc. What will be the last number the mummy will add that will make the sum on his calculator greater than 10,000
Explain galvanic cell consisting of the ag+ : Determine the standard cell potential, Ecell, of a galvanic cell consisting of the Ag+ (1M)/Ag and the Cr3+ (1M)/Cr redox couples.
Compute the partial pressure of each gas in the mixture : A tank contains a mixture of 3.0 mol N2, 2.0 mol O2, and 1.0 mol CO2 at 25 degree Celcius and a total pressure at 10.0 atm. Calculate the partial pressure(in torr) of each gas in the mixture.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Determine what is the impedance of the generator

A synchronous generator rated 1350 MVA at 0.9 pf, 22.5-kV, Xs=11.6% is connected to a power system through a 1500 MVA, 7.9% 24-kV/230-kV generator step up transformer. The power is generated into a 230-kV system.

  Explain how long will the cassette tape player operate

How long will the cassette tape player operate at normal power? A walker's cassette tape player uses 4 AA batteries in series to provide 6V to the player circuit.

  Compute the equilibrium carrier concentrations

Compute the equilibrium carrier concentrations and the position of the Fermi level with respect to the conduction band edge for a uniformly doped Si region with N_D=1*10^16 cm^-3 and N_A = 1*10^17 cm^-3 at room temperature.

  Define a three-phase overhead transmission line

A three-phase overhead transmission line has a per-phase resistance of 0.15 ohm/km, and a per-phase inductance of 1.3263 mH/km.

  Explain method to display the information of the rectangle

Design and implement a Rectangle class. Make your class inherit from the Point class given in the lecture (notice that a rectangle can be described through the upper-left vertex, the height, and the width).

  Calculate the total power draw by the two loads

Two delta-connvected loads are connected in parallel and powered by a balanced Y-connected system. The small of the two loads draws 10k VA at a lagging Power Factor (PF) of 0.75, and the larger draws 25k VA at a leading PF of 0.80.

  Design the lpf using blt and butterworth design technique

An ideal C/D converter is followed by a discrete-time LPF which is followed by an ideal D/C converter. The sampling rate is 8000 samples per second. The input analog signal is bandlimited to 3900 Hz. The overall frequency response is required to s..

  Define multiplexer with an active low enable

(c) Use a single 4-to-1 multiplexer with an active low enable and an active high output and a minimum of additional gates. Show the function expansion both algebraically and on a Karnaugh map.

  Design a low pass filter to suppress the carrier

At the receiver, demodulate the double side band signal S(t) = [cos(90*pi*t) + cos(120*pi*t)] * [cos(400*pi*t)], with the local carrier cos(400*pi*t). Design a low pass filter to suppress the carrier and plot the amplitude spectrum of S(t)

  Underwater optical communication system

An Underwater Optical Communication System and implementing Reed-Solomon Channel Coding

  What is the frequency for a periodic signal with a period

What is the frequency for a periodic signal with a period of 2.5 ns 2.5 GHz 250 MHz 4.0 GHZ 400 MHz 2. Which decimal number is equivalent to 25 10 25 31 32 3. Convert the following decimal negative numbers to their 8-bit, 2's complement formulatio..

  How much charge will produced if cadmium completeley reacts

The nickel- cadmium (nicad) battery is a secondary battery, meaning it can be recharged. it has the following reactions occuring during discharge: A nicad battery has .87 g of cadmium, which is the limiting reactant.

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