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
90% of traffic crashes are due to driver error.<br> True<br> False
kumpel [21]

90% of traffic crashes are due to driver error.

True

3 0
2 years ago
Read 2 more answers
In a TDM communication example, 15 voice signals are badlimited to 5kHz and transmitted simultaneously using PAM. What is a prel
MA_775_DIABLO [31]

Answer:

Option D

160 kHz

Explanation:

Since we must use at least one synchronization bit, total message signal is 15+1=16

The minimum sampling frequency, fs=2fm=2(5)=10 kHz

Bandwith, BW required is given by

BW=Nfs=16(10)=160 kHz

5 0
3 years ago
A 0.40-m3 insulated piston-cylinder device initially contains 1.3 kg of air at 30°C. At this state, the piston is free to move.
Setler79 [48]

Answer:

(a) The Final Temperature is 315.25 K.

(b) The amount of mass that has entered  0.5742 Kg.

(c) The work done is 56.52 kJ.

(d) The entrophy generation is 0.0398 kJ/kgK.

Explanation:

Explanation is in the following attachments.

6 0
3 years ago
What’s the number of gold atoms in a nanogram? a picogram?
zvonat [6]

Answer :

The number of gold atoms in nanogram is, 3.057\times 10^{12}

The number of gold atoms in picogram is, 3.057\times 10^{9}

Explanation :

As we know that the molar mass of gold is, 196.97 g/mole. That means, 1 mole of gold has 196.97 grams of mass of gold.

As we know that,

1 mole contains 6.022\times 10^{23} number of atoms.

First we have to determine the number of gold atoms in a nanogram.

As, 196.97 grams of gold contains 6.022\times 10^{23} number of gold atoms

And, 1 grams of gold contains \frac{1g}{196.97g}\times (6.022\times 10^{23}) number of gold atoms

So, 10^{-9} nanograms of gold contains \frac{1g}{196.97g}\times (10^{-9})\times (6.022\times 10^{23})=3.057\times 10^{12} number of gold atoms

The number of gold atoms in nanogram is, 3.057\times 10^{12}

Now we have to determine the number of gold atoms in a picogram.

As, 196.97 grams of gold contains 6.022\times 10^{23} number of gold atoms

And, 1 grams of gold contains \frac{1g}{196.97g}\times (6.022\times 10^{23}) number of gold atoms

So, 10^{-12} picograms of gold contains \frac{1g}{196.97g}\times (10^{-12})\times (6.022\times 10^{23})=3.057\times 10^{9} number of gold atoms

The number of gold atoms in picogram is, 3.057\times 10^{9}

8 0
3 years ago
Which of the following lists the steps of a process in the correct order?
Vladimir79 [104]

Answer: C. Problem identification, solution design, implementation, evaluation.

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • A thermal energy storage unit consists of a large rectangular channel, which is well insulated on its outer surface and encloses
    7·1 answer
  • To assist in completing this question, you may reference the Animated Technique Video - MALDI-TOF Mass Spectroscopy. Complete th
    9·1 answer
  • (8 points) Consider casting a concrete driveway 40 feet long, 12 feet wide and 6 in. thick. The proportions of the mix by weight
    8·1 answer
  • Saturated steam coming off the turbine of a steam power plant at 40°C condenses on the outside of a 3-cm-outer-diameter, 35-m-lo
    7·1 answer
  • A thick aluminum block initially at 26.5°C is subjected to constant heat flux of 4000 W/m2 by an electric resistance heater whos
    10·1 answer
  • A square isothermal chip is of width w 5 mm on a side and is mounted in a substrate such that its side and back surfaces are wel
    11·1 answer
  • For methyl chloride at 100°C the second and third virial coefficients are: B = −242.5 cm 3 ·mol −1 C = 25,200 cm 6 ·mol −2 Calcu
    7·1 answer
  • Please what is dif<br>ference between building technology and building engineering.​
    14·2 answers
  • People learn best in different ways. By combining all the group presentations, your class will explain how they see the optical
    8·2 answers
  • Quelles sont les types de carburant utilisés en aviation
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!