1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
castortr0y [4]
3 years ago
13

Write a function digits() that accepts a non-negative integer argument n and returns the number of digits in it’s decimal repres

entation. For credit, you should implement this using a loop and repeated integer division; you should not use math.log(), math.log10(), or conversion to string
Engineering
1 answer:
Katyanochek1 [597]3 years ago
3 0

Answer:

Explanation:

Let do this in python. We will utilize the while loop and keep on dividing by 10 until that number is less than 10. Along the loop we will count the number of looping process. Once the loop ends, we can output that as answer.

def digits(n):

    n_digit = 1

    while n >= 10:

         n_digit += 1

         n /= 10

    return n_digit

You might be interested in
Why is it that dislocations play an important role in controlling the mechanical properties of metallic materials, however, they
klio [65]

Answer:

dislocations play an important role in controlling as

Explanation:

As dislocations plays an important role in the ductility, elasticity and plurality of materials

  • The elastic and elastic deflections play a large role in their properties as the metallic materials, because the dislocation of a glass material does not play a major role in their properties.

5 0
3 years ago
What prevented this weld from becoming ropey?
Mama L [17]

Answer:

If I am not mistaken I believe it is a higher voltage.

Explanation:

Hope this helps

8 0
3 years ago
Read 2 more answers
Water vapor at 1.0 MPa, 300°C enters a turbine operating at steady state and expands to 15 kPa. The work developed by the turbin
Andre45 [30]

Answer:

a) isentropic efficiency = 84.905%

b) rate of entropy generation = .341 kj/(kg.k)

Please kindly see explaination and attachment.

Explanation:

a) isentropic efficiency = 84.905%

b) rate of entropy generation = .341 kj/(kg.k)

The Isentropic efficiency of a turbine is a comparison of the actual power output with the Isentropic case.

Entropy can be defined as the thermodynamic quantity representing the unavailability of a system's thermal energy for conversion into mechanical work, often interpreted as the degree of disorder or randomness in the system.

Please refer to attachment for step by step solution of the question.

5 0
3 years ago
A rectangular steel bar, with 8" x 0.75" cross-sectional dimensions, has equal and opposite moments applied to its ends.
denpristay [2]

Answer:

Part a: The yield moment is 400 k.in.

Part b: The strain is 8.621 \times 10^{-4} in/in

Part c: The plastic moment is 600 ksi.

Explanation:

Part a:

As per bending equation

\frac{M}{I}=\frac{F}{y}

Here

  • M is the moment which is to be calculated
  • I is the moment of inertia given as

                         I=\frac{bd^3}{12}

Here

  • b is the breath given as 0.75"
  • d is the depth which is given as 8"

                     I=\frac{bd^3}{12}\\I=\frac{0.75\times 8^3}{12}\\I=32 in^4

  • y is given as

                     y=\frac{d}{2}\\y=\frac{8}{2}\\y=4"\\

  • Force is 50 ksi

\frac{M_y}{I}=\frac{F_y}{y}\\M_y=\frac{F_y}{y}{I}\\M_y=\frac{50}{4}{32}\\M_y=400 k. in

The yield moment is 400 k.in.

Part b:

The strain is given as

Strain=\frac{Stress}{Elastic Modulus}

The stress at the station 2" down from the top is estimated by ratio of triangles as

                        F_{2"}=\frac{F_y}{y}\times 2"\\F_{2"}=\frac{50 ksi}{4"}\times 2"\\F_{2"}=25 ksi

Now the steel has the elastic modulus of E=29000 ksi

Strain=\frac{Stress}{Elastic Modulus}\\Strain=\frac{F_{2"}}{E}\\Strain=\frac{25}{29000}\\Strain=8.621 \times 10^{-4} in/in

So the strain is 8.621 \times 10^{-4} in/in

Part c:

For a rectangular shape the shape factor is given as 1.5.

Now the plastic moment is given as

shape\, factor=\frac{Plastic\, Moment}{Yield\, Moment}\\{Plastic\, Moment}=shape\, factor\times {Yield\, Moment}\\{Plastic\, Moment}=1.5\times400 ksi\\{Plastic\, Moment}=600 ksi

The plastic moment is 600 ksi.

3 0
3 years ago
The ignition temperature of 87-octane gasoline vapor is about 430 ∘C and, assuming that the working gas is diatomic and enters t
Flura [38]

Answer:

I have solved the problem below. I hope it will let you clear the concept.

For any inquiries ask me in the comments.

Explanation:

6 0
3 years ago
Other questions:
  • A teenager was pulling a prank and placed a large stuffed penguin in the middle of a roadway. A driver is traveling on this leve
    13·1 answer
  • A driver on a leveltwo-lane highway observes a
    6·1 answer
  • Air enters the combustor of a jet engine at p1=10 atm, T1=1000°R, and M1=0.2. Fuel is injected and burned, with a fuel/air mass
    7·1 answer
  • Give me an A please!!!¡!!!!¡
    5·1 answer
  • Use superpositions find​
    8·1 answer
  • When using fall arrest, free fall must be kept at or below how many feet
    13·1 answer
  • Consider the formation of p-nitrophenol from p-nitrophenyl trimethyl acetate. The process is known as enzymatic hydrolysis and i
    7·1 answer
  • To provide some perspective on the dimensions of atomic defects, consider a metal specimen that has a dislocation density of 105
    6·1 answer
  • It is ___ for motorcyclists to ride more than two abreast in a lane.
    7·1 answer
  • Almost all collisions are due to driver error
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!