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
Consider a fully developed laminar flow in a circular pipe. The velocity at R/2 (midway between the wall surface and the centerl
ryzh [129]

Answer:

The velocity at R/2 (midway between the wall surface and the centerline) is given by (3/4)(Vmax) provided that Vmax is the maximum velocity in the tube.

Explanation:

Starting from the shell momentum balance equation, it can be proved that the velocity profile for fully developedblaminar low in a circular pipe of internal radius R and a radial axis starting from the centre of the pipe at r=0 to r=R is given as

v = (ΔPR²/4μL) [1 - (r²/R²)]

where v = fluid velocity at any point in the radial direction

ΔP = Pressure drop across the pipe

μ = fluid viscosity

L = pipe length

But the maximum velocity of the fluid occurs at the middle of the pipe when r=0

Hence, maximum veloxity is

v(max) = (ΔPR²/4μL)

So, velocity at any point in the radial direction is

v = v(max) [1 - (r²/R²)]

At the point r = (R/2)

r² = (R²/4)

(r²/R²) = r² ÷ R² = (R²/4) ÷ (R²) = (1/4)

So,

1 - (r²/R²) = 1 - (1/4) = (3/4)

Hence, v at r = (R/2) is given as

v = v(max) × (3/4)

Hope this Helps!!!

4 0
3 years ago
A shift register is a synchronous sequential circuit that will store or move data. It consists of several flip-flops, which are
GrogVix [38]

Answer:

yeahHhhhhhhhhh

8 0
3 years ago
A heating torch is usually referred to as what?<br><br> Stick<br> Flower<br> Rose-bud<br> Lighter
Aleonysh [2.5K]
I would select rose-bud.
3 0
3 years ago
Read 2 more answers
The quantity of bricks required increases with the surface area of the wall, but the thickness of a masonry wall does not affect
Yakvenalex [24]

Answer:

false

Explanation:

5 0
3 years ago
Read 2 more answers
Technician A says that the definition of torque is how far the crankshaft twists in degrees.Technician B says that torque can re
leonid [27]
Technician B is correct because torque is a force of an object.
6 0
1 year ago
Other questions:
  • How much work does the electric field do in moving a proton from a point with a potential of +V1 = +185 V to a point where it is
    15·1 answer
  • Q1. In electronic circuits it is not unusual to encounter currents in the microampere range. Assume a 35 μA current, due to the
    13·1 answer
  • the frequencies 10, 12, 23 and 45 Hz. (a) What is the minimum sampling rate required to avoid aliasing? (b) If you sample at 40
    13·1 answer
  • A car radiator is a cross-flow heat exchanger with both fluids unmixed. Water, which has a flow rate of 0.05 kg/s, enters the ra
    15·1 answer
  • A mechanical system comprises three subsystems in series with reliabilities of 98, 96, and 94 percent. What is the overall relia
    10·1 answer
  • a digital multimeter is set to read dc volts on the 4 volt scale the meter leads are connected to a 12 volt battery what will th
    14·2 answers
  • A closed, rigid tank fitted with a paddle wheel contains 2.0 kg of air, initially at 200oC, 1 bar. During an interval of 10 minu
    8·1 answer
  • A positive slope on a position-time graph suggests
    15·1 answer
  • 4.7 If the maximum tensile force in any of the truss members must be limited to 22 kN, and the maximum compressive force must be
    9·1 answer
  • What was the most important thing you learned this school year in your engineering class and why did you choose this thing
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!