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 kitchen contains one section of counter that's 20 inches
Ne4ueva [31]

The number of receptacles that are needed for all of these kitchen areas are: C. Four.

<h3>What are receptacles?</h3>

Receptacles can be defined as types of sockets or series of outlets (openings) that provides a path where current can be taken in a wiring system, so as to run electrical appliances in buildings.

Based on the information provided, the number of receptacles that are needed for all of these kitchen areas are four because one would be used in each area.

Read more on receptacles here: brainly.com/question/23839796

#SPJ1

4 0
2 years ago
Please follow meee ​
vitfil [10]

Answer:

wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

3 0
3 years ago
is used to change physical objects and 3-D ideas into 2-D drawing that effectively describe the design and features of an object
Karolina [17]

Answer:

2D CAD Software Application

Explanation:

Two Dimensional Computer-Aided Design Software Application is otherwise known as 2D CAD software application such as AutoCAD or MicroStation is used to change physical objects and 3-D ideas into a 2-D drawing that effectively describe the design and features of an object, so the object can be documented and manufactured.

The utilization of a 2D CAD software application saves time and revision to construction drawings can quickly be made without having to redesign the whole drawings from the scratch.

5 0
3 years ago
What should you use to keep battery terminals from corroding
Ray Of Light [21]

Answer: Apply battery-terminal grease to the terminals to help prevent corrosion. It's available at any auto parts store and usually comes in a little ketchup-like packet. Another great option is AMSOIL Heavy-Duty Metal Protector. It creates a protective coating on terminals that wards off corrosion.

Explanation:

3 0
3 years ago
Reverse masking forms a soft edge on the panel.
valina [46]
True I think I’m not sure?
7 0
2 years ago
Other questions:
  • Race conditions are possible in many computer systems. Consider an online auction system where the current highest bid for each
    10·1 answer
  • The melting temperature of pure titanium = 1668°C, its density = 4.5 g/cm^3, specific heat = 0.544 J/gºC, and heat of fusion = 4
    7·1 answer
  • CONVEYOR PROGRAM: A conveyor will run when any one of four inputs are on. It will stop when any one of four other inputs are on.
    14·1 answer
  • If the open circuit voltage of a circuit containing ideal sources and resistors is measured at 6 V, while the current through th
    15·1 answer
  • THE COMPUND INTEREST ON RS 30,000AT 7% PER ANNUM IS RS 4347 THE PERIOD IN YEARS
    7·2 answers
  • Mr. Blue lives in a blue house, Mrs. Pink lives in a pink house and Mr. Red lives in a red house. Who lives in the White House?
    11·1 answer
  • When using a Hammer I should always keep an eye on may fingers so as not to hit them.?
    14·2 answers
  • Suppose there is a mobile application that can run in two modes: Lazy or Eager. In Lazy Mode, the execution time is 3.333 second
    11·1 answer
  • Select the best answer for the question
    11·1 answer
  • Technician A says that hoods are designed with reinforcements to prevent folding during a collision. Technician B says that some
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!