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
Using the tables for water, determine the specified property data at the indicated states. In each case, locate the state on ske
Anarel [89]

heres a link! ;)

http://www.econsulat.ro/

5 0
3 years ago
A 46.0-g meter stick is balanced at its midpoint (50.0 cm, zero point is a left end of stick). Then a 210.0-g weight is hung wit
Anna71 [15]

Clockwise torque due to 100g is 0.1029 Nm and 200g is 1.4406 Nm. Clockwise torque due to stick mass is 0.2254 Nm and Counter-clockwise torque due to normal force is 1.7689 Nm.            

<h3>What is clockwise torque?</h3>

The right-hand rule for cross products determines the direction of torque, which is calculated as the cross product of force and distance. Your thumb will point in the direction of the torque if you place your palm in the direction of the applied force and extend your fingers from the pivot point in that direction.

A related right-hand rule relates the direction of the rotation to the direction of the torque. Your fingers will curl in the direction of rotation if you point your thumb in the direction of the torque.

Positive torques cause counter clockwise rotation, while negative torques cause clockwise rotation.

The sum of all torques must be zero at equilibrium since an object in equilibrium has no net torque.

When the force is applied in a direction perpendicular to the line connecting the pivot and the force, the torque is at its greatest.

You can calculate the torque's magnitude using

                                             \begin{displaymath}\tau =rF_{\bot }=rF\sin \theta .\end{displaymath}

To solve problems involving torques, follow these eight steps: read the issue, create a free-body diagram, locate the pivot point, write down the expressions for all torques, For equilibrium conditions, set the sum of torques to zero, list all known variables, pick the desired variable(s), write down equations involving those variable(s), solve the equations, plug in numbers, and test your solution.

Clockwise torque due to 100 g                                                                         ⇒ T1 = 0.105* 9.8* 0.1 = 0.1029 Nm

Clockwise torque due to 200 g                                                                                                      ⇒ T2 = 0.210* 9.8* 0.7 = 1.4406 Nm

Clockwise torque due to stick mass                                                                               ⇒ T3 = 0.046* 0.5* 9.8 =0.2254 Nm

Counter-clockwise torque due to normal force                                                                             ⇒ T4 = (0.046 + 0.21 + 0.105)*9.8* 0.5 = 1.7689 Nm

Learn more about torque

brainly.com/question/1544595

#SPJ4

7 0
1 year ago
Component(s) that only allow(s) electrons to flow in one direction. Mark all that apply
Korolek [52]

Answer:

A,D, and E

Explanation:

6 0
3 years ago
Consider two Carnot heat engines operating in series. The first engine receives heat from the reservoir at 1400 K and rejects th
Aleksandr-060686 [28]

Answer:

The temperature T= 648.07k

Explanation:

T1=input temperature of the first heat engine =1400k

T=output temperature of the first heat engine and input temperature of the second heat engine= unknown

T3=output temperature of the second heat engine=300k

but carnot efficiency of heat engine =1 - \frac{Tl}{Th} \\

where Th =temperature at which the heat enters the engine

Tl is the  temperature of the environment

since both engines have the same thermal capacities <em>n_{th} </em> therefore n_{th} =n_{th1} =n_{th2}\\n_{th }=1-\frac{T1}{T}=1-\frac{T}{T3}\\ \\= 1-\frac{1400}{T}=1-\frac{T}{300}\\

We have now that

\frac{-1400}{T}+\frac{T}{300}=0\\

multiplying through by T

-1400 + \frac{T^{2} }{300}=0\\

multiplying through by 300

-420000+ T^{2} =0\\T^2 =420000\\\sqrt{T2}=\sqrt{420000}  \\T=648.07k

The temperature T= 648.07k

5 0
3 years ago
Why is the back-work ratio much higher in the brayton cycle than in the rankine cycle?
zloy xaker [14]

The back-work ratio much higher in the Brayton cycle than in the Rankine cycle because a gas cycle is the Brayton cycle, while a steam cycle is the Rankine cycle. Particularly, the creation of water droplets will be a constraint on the steam turbine's efficiency. Since gas has a bigger specific volume than steam, the compressor will have to work harder while using gas.

<h3>What are modern Brayton engines?</h3>

Even originally Brayton exclusively produced piston engines, modern Brayton engines are virtually invariably of the turbine variety. Brayton engines are also gas turbines.

<h3>What is the ranking cycle?</h3>

A gas cycle is the Brayton cycle, while the Ranking cycle is a steam cycle. The production of water droplets will especially decrease the steam turbine's performance. Gas-powered compressors will have to do more work since gas's specific volume is greater than steam's.

Th

To know more about Rankine cycle, visit: brainly.com/question/13040242

#SPJ4

4 0
1 year ago
Other questions:
  • Water at 20 bar and 400 C enters a turbine operating at steady state and exits at 1.5 bar. Stray heat transfer and kinetic and p
    14·1 answer
  • R 134a enters a air to fluid heat exchanger at 700 kPa and 50 oC. Air is circulated into the heat exchanger to cool the R134a to
    6·1 answer
  • The displacement volume of an internal combustion engine is 3 liters. The processes within each cylinder of the engine are model
    10·1 answer
  • A four-lane freeway (two lanes in each direction) is located on rolling terrain and has 12-ft lanes, no lateral obstructions wit
    14·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
  • Describe what viscoelastic behavior means
    7·1 answer
  • Which of the following sentences uses the word malleable correctly?
    7·2 answers
  • How to comment on brainly.com and I'm only 8-years-old so keep it simple please
    9·1 answer
  • Bob would like to run his house off the grid, therefore he needs to find out how many solar panels and batteries he needs to buy
    12·1 answer
  • What are the disadvantages of military shovels?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!