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
Olenka [21]
3 years ago
10

Fill in the empty function so that it returns the sum of all the divisors of a number, without including it. A divisor is a numb

er that divides into another without a remainder.
Engineering
1 answer:
tekilochka [14]3 years ago
6 0

Answer:

// Program is written in C++

// Comments are used to explain some lines

// Only the required function is written. The main method is excluded.

#include<bits/stdc++.h>

#include<iostream>

using namespace std;

int divSum(int num)

{

// The next line declares the final result of summation of divisors. The variable declared is also

//initialised to 0

int result = 0;

// find all numbers which divide 'num'

for (int i=2; i<=(num/2); i++)

{

// if 'i' is divisor of 'num'

if (num%i==0)

{

if (i==(num/i))

result += i; //add divisor to result

else

result += (i + num/i); //add divisor to result

}

}

cout<<result+1;

}

You might be interested in
OSHA requires safe work practices when working around brake shoes and clutches that contain asbestos.
Nataly_w [17]

Answer:

true

Explanation:

4 0
3 years ago
A satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
AlexFokin [52]

Answer:

i)ω=3600 rad/s

ii)V=7059.44 m/s

iii)F=1245.8 N

Explanation:

i)

We know that angular speed given as

\omega =\dfrac{d\theta}{dt}

We know that for one revolution

θ=2π

Given that time t= 2 hr

So

ω=θ/t

ω=2π/2 = π rad/hr

ω=3600 rad/s

ii)

Average speed V

V=\sqrt{\dfrac{GM}{R}}

Where M is the mass of earth.

R is the distance

G is the constant.

Now by putting the values

V=\sqrt{\dfrac{GM}{R}}

V=\sqrt{\dfrac{6.667\times 10^{-11}\times 5.98\times 10^{24}}{8000\times 10^3}}

V=7059.44 m/s

iii)

We know that centripetal fore given as

F=\dfrac{mV^2}{R}

Here given that m= 200 kg

R= 8000 km

so now by putting the values

F=\dfrac{mV^2}{R}

F=\dfrac{200\times 7059.44^2}{8000\times 10^3}

F=1245.8 N

3 0
3 years ago
Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standar
WINSTONCH [101]

Answer:

Explanation:

For automobile emission, a uniform standard is preferred, because no unnecessary advantage is given by it to any company that is located in particular states where the regional standards are less severe.

Since pollution has its impact across the states and in the whole of the USA, then there should be uniform standards across all the states. It will also invalidate the impact of regional standards as a factor in the selection of plant locations for the automobile company. It means that a state offering less valid emission standards, will attract more companies to herself and it will be against the other states who care more about the natural environment. It can make more states to opt for the permissive emission standards, that will be more harmful to the USA as a country, than the good. So, a uniform standard is preferred to eliminate it as a factor in plant location decisions.

Yes, uniform standards are beneficial to everyone, because it will bring effective control upon the pollution level because there will be no state where the culprit firm can hide. Besides, it is more effective as efforts done towards environment conservation.

3 0
3 years ago
9. Calculate the total resistance and current in a parallel cir-
Taya2010 [7]

Answer:

  d. 2.3 ohms (5.3 amperes)

Explanation:

The calculator's 1/x key makes it convenient to calculate parallel resistance.

  Req = 1/(1/4 +1/8 +1/16) = 1/(7/16) = 16/7 ≈ 2.3 ohms

This corresponds to answer choice D.

__

<em>Additional comment</em>

This problem statement does not tell the applied voltage. The answer choices suggest that it is 12 V. If so, the current is 12/(16/7) = 21/4 = 5.25 amperes.

5 0
3 years ago
‏What is the potential energy in joules of a 12 kg ( mass ) at 25 m above a datum plane ?
Virty [35]

Answer:

E = 2940 J

Explanation:

It is given that,

Mass, m = 12 kg

Position at which the object is placed, h = 25 m

We need to find the potential energy of the mass. It is given by the formula as follows :

E = mgh

g is acceleration due to gravity

E=12\times 9.8\times 25\\\\E=2940\ J

So, the potential energy of the mass is 2940 J.

3 0
3 years ago
Other questions:
  • An overhead 25m long, uninsulated industrial steam pipe of 100mm diameter is routed through a building whose walls and air are a
    9·1 answer
  • WILL BRAINLIEST IF CORRECT!!!!!<br><br> Some one help ASAP.
    8·1 answer
  • Consider the experiment of Problem 1.27, in which a frictionless puck is sliding straight across a rotating turntable through th
    10·1 answer
  • Engineers design for everyone and consider all design challenges opportunities to problem-solve. The roller coaster in this phot
    5·1 answer
  • which systems engineering support discipline has the goal to ensure that support considerations are an integral part of the syst
    14·1 answer
  • Expert Review is done by end users.
    9·1 answer
  • When an output gear is larger than the input gear the greater ratio is greater than 1 T or F​
    9·1 answer
  • Please help been stuck on this for a couple minutes
    5·1 answer
  • Steam enters a heavily insulated throttling valve at 11 MPa, 600°C and exits at 5.5 MPa. Determine the final temperature of the
    14·1 answer
  • A skull and crossbones pictogram indicates this kind of information about a chemical.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!