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
A cold air standard gas turbine engine with a thermal efficiency of 56.9 % has a minimum pressure of 100 kP
Aleks04 [339]

Answer:

a) 5.2 kPa

b) 49.3%

Explanation:

Given data:

Thermal efficiency ( л ) = 56.9% = 0.569

minimum pressure ( P1 ) = 100 kpa

<u>a) Determine the pressure at inlet to expansion process</u>

P2 = ?

r = 1.4

efficiency = 1 - [ 1 / (rp)\frac{r-1}{r} ]

   0.569   = 1 - [ 1 / (rp)^0.4/1.4

1 - 0.569  = 1 / (rp)^0.285

∴ (rp)^0.285 = 0.431

rp = 0.0522

note : rp = P2 / P1

therefore P2 = rp * P1 = 0.0522 * 100 kpa

                                   = 5.2 kPa  

b) Thermal efficiency

Л = 1 - [ 1 / ( 10.9 )^0.285 ]

   = 0.493 = 49.3%

4 0
3 years ago
Your family has asked you to estimate the operating costs of your clothes dryer for the year. The clothes dryer in your home has
trasher [3.6K]

Answer:

The costs to run the dryer for one year are $ 9.03.

Explanation:

Given that the clothes dryer in my home has a power rating of 2250 Watts, and to dry one typical load of clothes the dryer will run for approximately 45 minutes, and in Ontario, the cost of electricity is $ 0.11 / kWh, to calculate the costs to run the dryer for one year the following calculation must be performed:

1 watt = 0.001 kilowatt

2250/45 = 50 watts per minute

45 x 365 = 16,425 / 60 = 273.75 hours of consumption

50 x 60 = 300 watt = 0.3 kw / h

0.3 x 273.75 = 82.125

82.125 x 0.11 = 9.03

Therefore, the costs to run the dryer for one year are $ 9.03.

8 0
3 years ago
In addition to bandages and gauze, it's recommended that a first aid kit also contain
e-lub [12.9K]
Disinfectant supplies, such as wipes of gel.
7 0
3 years ago
Consider a solid circular shaft subjected to bending and torsion so that the state of stress of interest involves only a normal
Alex17521 [72]

Answer:

The detailed explanation of answer is given in attached file.

Explanation:

7 0
4 years ago
What invention would you argue most impacted mechanical engineering
Law Incorporation [45]

Answer:

The wheel

Explanation:

3 0
3 years ago
Other questions:
  • Which bulb has the lowest total cost of operation? (a) Incandescent (b) Fluorescent (c) LED
    8·1 answer
  • Tanya Pierce, President and owner of Florida Now Real Estate is seeking your assistance in designing a database for her business
    9·1 answer
  • A Service Schedule is...
    8·2 answers
  • Water flows through a nozzle at the end of a fire hose. If the nozzle exit velocity must be 20 m/s and the exit diameter is 40 m
    6·1 answer
  • Lately, you have noticed some repetitive stress in your wrist. Which sign is most likely the cause of that stress and pain?
    7·1 answer
  • 9.21 A household oven door of 0.5-m height and 0.7-m width reaches an average surface temperature of 32℃ during operation. Estim
    8·1 answer
  • Two metallic terminals protrude from a device. The terminal on the left is the positive reference for a voltage called vx (the o
    9·2 answers
  • Convert.46 to a percentage
    7·1 answer
  • All of the following have the same units except: Group of answer choices resistance capacitive reactance. inductance. impedance.
    8·1 answer
  • Which explanation best summarizes what went wrong during Paul’s cost analysis?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!