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
Genrish500 [490]
3 years ago
15

Write a function to find the factors of an input number. The function should have one input n and a single output of a vector wh

ose entries are the factors of n. The only built in functions you are allowed to use are mod or rem (I would prefer mod). Demonstrate that your function works as expected.
Engineering
1 answer:
Hoochie [10]3 years ago
6 0

The following is the program.                                                          

<u>Explanation</u>:

  • We should  find the factors of input number
  • We can use  python to find the factors of input number
  • In this program, we can use the mod function.

def print_factors(y):

   print("The factors of",y,"are:")

     for j in range(1, y + 1):

          if y % j == 0:

                print(j)

num = 320

print_factors(num)

The above program calculates the factors of n. Here def is called as define function. We are calculating the factors of y. After that, we are giving them for the condition. If the condition is true it will print the factors of y.

                                   

You might be interested in
Write a grammar for a language whose sentences start with an even and non-zero number of x’s, end with an odd number of z’s, and
sveta [45]

Answer:

GRAMMAR

S -> AB

A -> xxAyy | xxyy

B -> yyBzz | yz

EXPLANATION

A is for even number of x's followed by that number of y's

B is for odd number of y's followed by that number of z's

3 0
3 years ago
Indicate on a tensile curve such quantities as yield stress, Young's modulus, UTS, toughness, point of necking, point of fractur
Illusion [34]

Explanation:

Step1

In the stress-strain curve of any material, the yield stress is the maximum stress at which material starts yielding.

Step2

Young’s modulus is the constant of proportionality of stress and strain according to hooks law. It is the slope of the slope of the stress-strain curve of the any material under proportional limit.

Step3

Ultimate tensile stress is the maximum stress that induced in the material under application of load.

Step4

Toughness is the strain energy per unit volume up to the fracture point of the stress-strain diagram of any material. This is the area under the curve of stress-strain.

Step5

Point of necking is the point where any material starts necking under application of load in necking region of the stress-strain curve.

Step6

Fracture point is the last point of the stress-strain curve where component fractures under application of load.

All the parameters are shown in below stress-strain curve:

8 0
3 years ago
While there are many ways to solve this problem, one strategy is to calculate the volume of any metal's unit cell given its theo
IgorC [24]

Answer:

V_{c}=1.396x10^{-28}  m^{3} /unit.cell

Explanation:

z = number of atoms

M = Molar mass of zirconium

N = Avogadro’s number

Vc = volume of zirconium unit cell

d = density

z=12x\frac{1}{6}+2x\frac{1}{2}+3=6

z = 6 atoms per unit cell

M = 91.224 g/mol

N = 6.023x10^{23}  atoms/mol

d = 6.51g/cm^{3}

V_{c}=\frac{zxM}{dxN}

V_{c}=\frac{6x(91.224g/mol)}{(6.51g/cm^{3}) x(6.023x10^{23}atoms/mol) }

V_{c}=1.396x10^{-22}  cm^{3} /unit.cell

V_{c}=1.396x10^{-28}  m^{3} /unit.cell

8 0
3 years ago
What do you think the top TWO game elements are that directly contribute to player immersion?
fredd [130]
Sound (like music and background sound) and detail. The music and background sound is what sets the mood for the game. In horror games, the sound is sometimes uneasy to make the player feel anxious, and when something chases you the music turns into fast-pace and making the player scared and feel that adrenaline. The detail also is a great factor. The more realistic a game is, the more it feels like real life and determines if the player will get a real reaction from the game.
6 0
3 years ago
What can be used to relieve stress in a weld.
satela [25.4K]
Yes , of course you can
3 0
3 years ago
Read 2 more answers
Other questions:
  • A corroded metal gusset plate was found on a bridge. It was estimated that the original area of the plate was 750 cm2 and that a
    11·1 answer
  • In Victorious, when everyone was trapped in the RV, who wasn’t? And what were they doing??
    10·1 answer
  • CNG is a readily available alternative to
    5·1 answer
  • Help me! Phone Phoebe on 07375410044.
    7·2 answers
  • Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has given three test
    13·1 answer
  • Rain falls on a 1346 acre urban watershed at an intensity of 1.75 in/hr for a duration of 1 hour. The catchment land use is 20%
    10·1 answer
  • Use the map to complete the table by selecting the boxes that best describe how ocean currents affect the
    14·1 answer
  • ____________ is the organization that oversees environmental compliance.
    14·1 answer
  • Technician A says that to depressurize high-pressure components of the electronic brake control (EBC) system, research the proce
    13·1 answer
  • Describe the greatest power in design according to Aravena?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!