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
For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about ____
7nadin3 [17]

Answer:

One

For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about _one___

<h3>what is supported mounted?</h3>
  • A structure that holds up or serves as a foundation for something else. Support is a synonym for mounting.

To learn more about it, refer

to brainly.com/question/25689052

#SPJ4

4 0
2 years ago
A rigid tank contains 1 kg of oxygen (O2) at p1 = 35 bar, T1 = 180 K. The gas is cooled until the temperature drops to 150 K. De
andreyandreev [35.5K]

Answer:

a. Volume = 13.36 x 10^-3 m³ Pressure = 29.17 bar  b. Volume = 14.06 x 10^-3 m³ Pressure = 22.5 bar

Explanation:

Mass of O₂ = 1kg, Pressure (P1) = 35bar, T1= 180K, T2= 150k Molecular weight of O₂ = 32kg/Kmol

Volume of tank and final pressure using a)Ideal Gas Equation and b) Redlich - Kwong Equation

a. PV=mRT

V = {1 x (8314/32) x 180}/(35 x 10⁵) = 13.36 x 10^-3

Since it is a rigid tank the volume of the tank must remain constant and hnece we can say

T2/T1 = P2/P1, solving for P2

P2 = (150/180) x 35 = 29.17bar

b. P1 = {RT1/(v1-b)} - {a/v1(v1+b)(√T1)}

where R, a and b are constants with the values of, R = 0.08314bar.m³/kmol.K, a = 17.22(m³/kmol)√k, b = 0.02197m³/kmol

solving for v1

35 = {(0.08314 x 180)/(v1 - 0.02197)} - {17.22/(v1)(v1 + 0.02197)(√180)}

35 = {14.96542/(v1-0.02197)} - {1.2835/v1(v1 + 0.02197)}

Using Trial method to find v1

for v1 = 0.5

Right hand side becomes =  {14.96542/(0.5-0.02197)} - {1.2835/0.5(0.5 + 0.02197)} = 31.30 ≠ Left hand side

for v1 = 0.4

Right hand side becomes =  {14.96542/(0.4-0.02197)} - {1.2835/0.4(0.4 + 0.02197)} = 39.58 ≠ Left hand side

for v1 = 0.45

Right hand side becomes =  {14.96542/(0.45-0.02197)} - {1.2835/0.45(0.45 + 0.02197)} = 34.96 ≅ 35

Specific Volume = 35 m³/kmol

V = m x Vspecific/M = (1 x 0.45)/32 = 14.06 x 10^-3 m³

For Pressure P2, we know that v2= v1

P2 = {RT2/(v2-b)} - {a/v2(v2+b)(√T2)} = {(0.08314 x 150)/(0.45 - 0.02197)} - {17.22/(0.45)(0.45 + 0.02197)(√150)} = 22.5 bar

3 0
3 years ago
Choose two consumer services careers and research online to determine what kinds of professional organizations exist for these p
Tom [10]

Answer:

Market Researcher

The Marketing Research Association (MRA) is a professional organization for market researchers. It provides information to its members on how to improve marketing research for businesses and individuals. The MRA gives its members important industry news and information through their website. Their code for marketing research standards also protects members from bad actors and improves the public perception of marketing research. The association also has a full time lobbyist representing the market research industry before government officials. The MRA has various membership categories as well. The membership fee differs for each category.  

Credit Analyst

A credit analyst is a person that reviews consumer or business financial profiles in order to give a loan or credit to them. When a business or individual applies for a credit card, loan, trade account, or another type of financial product whereby a company allows them the use of their money, a credit analyst’s job is to ensure that the consumer or business is willing and able to pay it back in the future. Credit analysts use tools such as credit reports, FICO scores, Dun & Bradstreet ratings, financial statement analyses, and personal references to perform their job. A credit analyst should have a bachelor’s degree with a major in business. Finance and economics majors are particularly suited to a credit analyst position. Certifications are not required, but some credit analysts pursue CPA or CFA (Certified Financial Analyst) designations.

Explanation:

5 0
3 years ago
How would you describe what would happen to methane if the primary bonds were to break?
erastova [34]

Answer:

All the bonds in methane (CH4CH4) are equivalent, and all have the same dissociation energy.

The product of the dissociation is methyl radical (CH3CH3). All the bonds in methyl radical are equivalent, and all have the same dissociation energy.

The product of that dissociation is methylene (CH2CH2). All the bonds in methylene are equivalent, and all have the same dissociation energy.

The product of that dissociation is methyne (CHCH) .

The C-H bonds in methane do not have the same dissociation energy as C-H bonds in methyl radical, which in turn do not have the same dissociation energy as the C-H bonds in methylene, which are again different from the C-H bond in methyne.

If (by some miracle) you were able to get all four bonds in methane to dissociate absolutely simultaneously, they would all show the same dissociation energy… but that energy, per bond broken, would be different than the energy required to break just one C-H bond in methane, because the products are different.

(In this case, it’s CH4→C+4HCH4→C+4H versus CH4→CH3+HCH4→CH3+H.)

To alter hydrocarbons you add enough energy to break a C-H bond. Why does only one bond break? What concentrates the energy on one C-H bond?

the weakest CH bond is the one that breaks. in plain alkanes it has to do with the molecular orbital interactions between neighboring carbon atoms. look at propane for example. the middle carbon has two C-C bonds, and each of those C-C bonds is strengthened by slight electron delocalization from the C-H bonds overlapping with the antibonding orbitals of the adjacent carbons.

since the C-H bonds on the middle carbon donate electron density to both of its neighbors, those two are weakest.

one of them will break preferentially.

which one actually breaks depends on the reaction conditions (kinetics). frankly it's whichever one ramdomly approaches a nucleophile first. when the nucleophile pulls of one of the H's, the other C-H bonds start to share (delocalize) the negative charge across the whole molecule. so while the middle C feels the majority of the negative charge character, the other two C's take on a fair amount as well...

by the way, alkanes don't really like to break and form anions like that.

a better example would be something like isopropyl iodide, where the C-I bond breaks and the I carries away the electron pair, forming a carbocation (also not particularly stable, but more so than the carbanion).

7 0
3 years ago
If particleboard is used as wall sheathing, the grade mark with type _____ or _____ should be stamped on it.
kramer

If particleboard is used as wall sheathing, the grade mark with type M1 or M2 should be stamped on it.

<h3>What is particle board?</h3>

Particle board is notably used as floors underlayment or as a base for parquet floors, timber floors, or for carpets. For this purpose, the particle forums are dealt with with unique chemical compounds and resins to cause them to water-resistant or termite proof.

Waferboard, OSB, and composite plywood, while carried out as wall sheathing, offer a nail base for software of shingle siding.

Read more about the sheathing:

brainly.com/question/5029827

#SPJ1

8 0
2 years ago
Other questions:
  • JAVA HADOOP MAPREDUCE
    13·1 answer
  • The liquid-phase reaction:
    12·1 answer
  • A three-phase transformer bank consists of 3 single-phase transformers to handle 400 kVA witha 34.5kV/13.8kV voltage ratio. Find
    7·1 answer
  • The cars of a roller-coaster ride have a speed of 30 km / h as they pass over the top of the circular track. Neglect any frictio
    9·1 answer
  • Describe what viscoelastic behavior means
    7·1 answer
  • How many 3-digits numbers which are greater than 300 can be formed from 6
    12·1 answer
  • Two previously undeformed rod-shaped specimens of copper are to be plastically deformed by reducing their cross-sectional areas.
    14·1 answer
  • The hot-wire anemometer.' A hot-wire anemome ter is essentially a fine wire, usually made of platinum,which is heated electrical
    6·1 answer
  • What are the maximum weights for single, tandem and 5-axle combinations?
    6·1 answer
  • Select four items that an industrial engineer must obtain in order to practice in the field.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!