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]
2 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]2 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
CAD(computer-aided design) software and is used in__________and __________that show how to construct an object. Technical drawin
8_murik_8 [283]

Answer:

Plans; blueprints.

Explanation:

In Engineering, it is a common and standard practice to use drawings and models in the design and development of various tools or systems that are being used for proffering solutions to specific problems in different fields such as engineering, medicine, telecommunications and industries.

Hence, a design engineer make use of drawings such as pictorial drawings, sketches, or technical drawing to communicate ideas about a design to others, to record and retain informations (ideas) so that they're not forgotten and to analyze how different components of a design work together.

Technical drawing is mainly implemented with CAD (computer-aided design) software and is typically used in plans and blueprints that show how to construct an object.

Additionally, technical drawings show in detail how the pieces of something (object) relate to each other, as well as accurately illustrating the actual (true) shape and size of an object in the design and development process.

5 0
3 years ago
Determine the output logic-levels(boolean-levels) for XNOR if the two-inputs are inverted?​
stiv31 [10]

Answer:

<em><u>1</u></em>

<em><u>1What is the output of 2 Input XNOR gate if both the inputs are same? Explanation: The output of 2 Input XNOR gate is 1 if both the inputs are same. The output of the XNOR gate is 1 if both the inputs are logic 0 or logic 1. This is why they are called as equality detector.</u></em>

4 0
2 years ago
Hello I need some help with this please. Pick a problem in your school or community that you think could be solved with technolo
bezimeni [28]

Answer:

An AI operated automatic garbage collection system

Explanation:

There is always an issue in my neighbourhood with the garbagemen coming on time so having an automatic system will help in the overall efficiency in the task

7 0
3 years ago
Read 2 more answers
Assume a function requires 20 lines of machine code and will be called 10 times in the main program. You can choose to implement
Volgvan

Answer:

"Macro Instruction"

Explanation:

A macro definition is a rule or pattern that specifies how a certain input sequence should be mapped to a replacement output sequence according to a defined procedure. The mapping process that instantiates a macro use into a specific sequence is known as macro expansion.

It is a series of commands and actions that can be stored and run whenever you need to perform the task. You can record or build a macro and then run it to automatically repeat that series of steps or actions.

7 0
3 years ago
[4 points] Does the green LED emit light when you connect the banana plug wires across it? What does that say about the threshol
castortr0y [4]

Yes, the green LED emits light when we connect the banana plug wires across it.

This indicates that the threshold voltage is lower for the green LED light than the blue.

<u>Explanation</u>:

A banana plug is named for its resemblance to the shape of a banana. They are wider in the middle of the plug, and narrower at the top and bottom. The banana plug can be easily plugged or unplugged into the ports of speaker or receiver.

LED lights emit photons when it is applied with electrical charge. LED lights are more efficient and last longer than incandescent light bulbs. Green light is commonly provides the calming effect. It is generally used in hyper-pigmentation treatment.

4 0
2 years ago
Other questions:
  • 4. A 1 m3 rigid tank has propane at 100 kPa, 300 K and connected by a valve to another tank of 0.5 M3 with propane at 250 kPa, 4
    11·1 answer
  • Discuss four (4) advantages of direct and indirect water supply system.
    5·2 answers
  • Exercise 5.46 computes the standard deviation of numbers. This exercise uses a different but equivalent formula to compute the s
    12·1 answer
  • Discuss the ethics of the circumstances that resulted in the Columbia shuttle disaster. Considering the predictions that were ma
    5·1 answer
  • The annual average of solar photovoltaic energy in Phoenix is 6,720
    8·1 answer
  • The Accenture team is involved in helping a client in the transformation journey using Cloud computing. How is myNav beneficial
    6·1 answer
  • Which of the following would be addressed by an employer completing an EAP template?
    11·1 answer
  • How could increasing the budget for testing have prevented the problem experienced by the mars orbiter?
    7·1 answer
  • What is the different between isometric view and isometric projection
    11·1 answer
  • The side area of the door shell that is concealed when the door is closed is called the:
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!