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
I just wanted to say thanks you to Brainly. This website is a huge help!
Fantom [35]

THANKS BRAINLY <3

Explain : I've got a lot of help from this website :D

3 0
3 years ago
Discuss four (4) advantages of direct and indirect water supply system.
Reil [10]

Answer and Explanation:

Some of the advantages of direct water supply system are:

  • Smaller size of the cistern
  • No risk of polluted water
  • Ease of installation
  • Lower pipe work

Some of the advantages of indirect water supply system are:

  • It can be pumped completely
  • Lower demand on the main source
  • Minimization of wear and tear on taps
  • Larger size of the cistern.
7 0
3 years ago
Read 2 more answers
Compare and contrast the roles of agricultural and environmental scientists.
aleksandr82 [10.1K]

Answer:

HUHHHHHH BE SPECIFIC CHILE

Explanation:

ERM IRDK SORRY BOUT THAT

8 0
3 years ago
Before installing head gaskets look for “____” labels on the head gaskets
Strike441 [17]

Before installing head gaskets, you should look for "this side up" or "front" labels on the head gaskets.

<h3>What is a head gasket?</h3>

A head gasket can be defined as a gasket which is fitted between the engine block and the cylinder head in an internal combustion engine, so as to seal oil passages and absorb the pressures of the combustion that occurs inside the engine.

As a general rule, you should look for "this side up" or "front" labels on the head gaskets before installing head gaskets in an internal combustion engine of a vehicle.

Read more on head gaskets here: brainly.com/question/1264437

#SPJ1

7 0
2 years ago
Time complexity of merge sort
vovangra [49]

Answer:

The correct answer is "O (n\times Log n)". A further explanation is given below.

Explanation:

  • Throughout all the three instances (worst, average as well as best), the time complexity including its Merge sort seems to be O (n\times Log n) as the merge form often splits the array into two halves together tends to linear time to combine multiple halves.
  • As an unsorted array, it needs an equivalent amount of unnecessary capacity. Therefore, large unsorted arrays are not appropriate for having to search.
6 0
3 years ago
Other questions:
  • Consider the following hypothetical scenario for Jordan Lake, NC. In a given year, the average watershed inflow to the lake is 9
    14·1 answer
  • Problem 8. Define a function gs1_error(n) that accepts as input a non-negative integer n and outputs the error of the Gauss-Seid
    7·1 answer
  • . A 10W light bulb connected to a series of batteries may produce a brighter lightthan a 250W light bulb connected to the same b
    8·2 answers
  • A 11.5 nC charge is at x = 0cm and a -1.2 nC charge is at x = 3 cm ..At what position or positions on the x-axis is the electric
    5·1 answer
  • Saul is testing an installation and discovers a short circuit. What's causing this?
    10·1 answer
  • For a steel alloy it has been determined that a carburizing heat treatment of 11.3 h duration will raise the carbon concentratio
    8·1 answer
  • For the example above: If the three balls were all whites or all blues?​
    14·1 answer
  • You push a 10 n object 10 m how much work was done on the object​
    7·2 answers
  • What is the definition of a struck by injury
    5·1 answer
  • Question 2: write a program for smart garage system using:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!