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
The underground storage of a gas station has leaked gasoline into the ground. Among the constituents of gasoline are benzene, wi
vovangra [49]

Answer:

a) benzene = 910 days

b) toluene = 1612.67 days

Explanation:

Given:

Kd = 1.8 L/kg (benzene)

Kd = 3.3 L/kg (toluene)

psolid = solids density = 2.6 kg/L

K = 2.9x10⁻⁵m/s

pores = n = 0.37

water table = 0.4 m

ground water = 15 m

u = K/n = (2.9x10⁻⁵ * (0.4/15)) / 0.37 = 2.09x10⁻⁶m/s

a) For benzene:

R=1+\frac{\rho * K_{d}  }{n}, \rho = 2.6\\ R=1+\frac{2.6*1.8}{0.37} =13.65

The time will take will be:

t=\frac{xR}{a} , x=12,a=0.18\\t=\frac{12*13.65}{0.18} =910days

b) For toluene:

R=1+\frac{2.6*3.3  }{0.37} = 24.19

t=\frac{12*24.19}{0.18} =1612.67days

6 0
3 years ago
Read 2 more answers
I’m in Sociology Class guys and I need help on this question!
Kitty [74]

The stance that a person will take on increasing the minimum wage  is that higher earnings would boast the total standard of living for anyone that is earning minimum wage and it is one that  can provide them with a lot of appropriate income level to manage the cost of living as it increases.

<h3>How would you validate your stance through research?</h3>

I will take a survey using a sample population of minimum wage workers and give them questionnaires to fill.

<h3>What are positive effects of reasons for raising the minimum wage?</h3>
  • The merit of raising the minimum wage are:
  • It boast or Improves employee in terms of retention.
  • It also brings up the demand for goods and services.
  • It tends to increase employee performance.

Therefore, The stance that a person will take on increasing the minimum wage  is that higher earnings would boast the total standard of living for anyone that is earning minimum wage and it is one that  can provide them with a lot of appropriate income level to manage the cost of living as it increases.

Learn more about minimum wage from

brainly.com/question/26699459

#SPJ1

5 0
1 year ago
Calculate the molar heat capacity of a monatomic non-metallic solid at 500K which is characterized by an Einstein temperature of
aleksandr82 [10.1K]

Answer:

Explanation:

Given

Temperature of solid T=500\ K

Einstein Temperature T_E=300\ K

Heat Capacity in the Einstein model is given by

C_v=3R\left [ \frac{T_E}{T}\right ]^2\frac{e^{\frac{T_E}{T}}}{\left ( e^{\frac{T_E}{T}}-1\right )^2}

e^{\frac{3}{5}}=1.822

Substitute the values

C_v=3R\times (\frac{300}{500})^2\times (\frac{1.822}{(1.822-1)^2})

C_v=3R\times \frac{9}{25}\times \frac{1.822}{(0.822)^2}

C_v=0.97\times (3R)            

6 0
3 years ago
In using the drag coefficient care needs to be taken to use the correct area when determining the drag force. What is a typical
stealth61 [152]

Answer:

Explanation:

We know that Drag forceF_D

  F_D=\dfrac{1}{2}C_D\rho AV^2

Where

             C_D is the drag force constant.

                 A is the projected area.

                V is the velocity.

                ρ is the density of fluid.

Form the above expression of drag force we can say that drag force depends on the area .So We should need to take care of correct are before finding drag force on body.

Example:

 When we place our hand out of the window in a moving car ,we feel a force in the opposite direction and feel like some one trying to pull our hand .This pulling force is nothing but it is drag force.

6 0
3 years ago
The enforcement of OSHA standards is provided by federal and state
Gnoma [55]

Answer:

Explanation:

Enforcing OSHA, Occupational Safety and Health Administration, standards is not a job for electricians, lawmakers or tax collectors. The right answer is safety inspectors.

3 0
2 years ago
Other questions:
  • (8 points) Consider casting a concrete driveway 40 feet long, 12 feet wide and 6 in. thick. The proportions of the mix by weight
    8·1 answer
  • Determine F12 and F21 for the following configurations: (a) A long semicircular duct with diameter of 0.1 meters: (b) A hemisphe
    10·1 answer
  • A seawall with an opening is used to dampen the tidal influence in a coastal area (and limit erosion). The seawall is 2.5 m long
    11·1 answer
  • What is an isentropic process?
    7·1 answer
  • Please help will give brainliest please answer all 3
    11·1 answer
  • Describe how a cavity wall works and sketch its major construction features. What aspects of cavity wall construction are most c
    5·1 answer
  • What is the chord length of an airplane called?
    14·1 answer
  • Who invented a control unit for an artificial heart?<br> ements<br> ante
    8·1 answer
  • How to install a curt 5th wheel hitch in a 2017 chevy silverado
    14·1 answer
  • Contrast moral and immoral creativity and innovation<br>​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!