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
In the truss below, the vertical reaction force at A is
Montano1993 [528]
It’s c trust just trust
7 0
3 years ago
While walking across campus one windy day, an engineering student speculates about using an umbrella as a "sail" to propel a bic
makvit [3.9K]

Answer:

Given data:\\While walking across campus one windy day\\Frontal area, \(A=0.3 m ^{2}\)\\Wind speed \(V=24 Km / hr\)\\The drag coefficient \(C_{D, b}=1.2\)\\The combined mass \(m=75 kg\)\\Umbrella diameter, \(D=1.22 m\)\\Velocity of wind \(V=24 \frac{ km }{ hr }\)\\The rolling resistance \(C_{R}=0.75 \%\)

Solution:

Note: Refer the diagram

Basic equation:\\'s law of motion: \(\sum F_{x}=m a_{x}\)\\Lift coefficient, \(C_{L}=\frac{F_{L}}{\frac{1}{2} \rho V^{2} A_{p}}\)\\Drag coefficient, \(C_{D}=\frac{F_{D}}{\frac{1}{2} \rho V^{2} A_{p}}\)

From force balance equation:\\\(\sum F_{x}=F_{D}-F_{R}=0\)\\But \(F_{D}=\left(C_{D, \alpha} A_{u}+C_{D, B} A_{b}\right) \frac{1}{2} \rho\left(V_{\nu}-V_{b}\right)^{2}\)\(F_{R}=C_{R} m g\)\\Area of the Umbrella \(A_{u}=\frac{\pi D_{u}^{2}}{4}\)\(A_{x}=\frac{\pi \times 1.22^{2}}{4} m ^{2}\)\(A_{v}=1.17 m ^{2}\)

Drag coefficient data for selected objects table at

Hemisphere (open end facing flow), C_{D, x}=1.42

Substituting all parameters,

\begin{aligned}&F_{R}=0.0075 \times 75 \times 9.81\\&F_{R}=5.52 N\end{aligned}

Then,

\begin{aligned}&V_{b}=V_{w}-\left[\frac{2 F_{R}}{\rho\left(C_{D, w} A_{w}+C_{D, B} A_{b}\right)}\right]^{\frac{1}{2}} \dots\\&V_{w}=24 \times 1000 \times \frac{1}{3600}\\&V_{w}=6.67 \frac{ m }{ s }\end{aligned}

And the equation becomes,

\begin{aligned}&V_{b}=6.67-\left[\frac{2 \times 5.52}{1.23(1.42 \times 1.17+1.2 \times 0.3)}\right]^{\frac{1}{2}}\\&V_{b}=6.67-2.11\\&V_{b}=4.56 \frac{ m }{ s }\end{aligned}

Thus the floyds travels at 68.3^{\circ}wind speed.

7 0
4 years ago
How many ase certifications are there for automotive technicians?
romanna [79]

Answer:

There are 50 ASE certification tests, covering almost every imaginable aspect of the automotive repair and service industry.

Explanation:

yww <33

5 0
3 years ago
About ceramics: Generally are hard and brittle. a) True b)-False
aniked [119]

Answer:

true

Explanation:

8 0
3 years ago
what are 3 things you would like to get out of an ethical engineering class? and why? about a page explanation would do fine.
poizon [28]

Answer:

I don't know

Explanation:

i don't know

8 0
3 years ago
Read 2 more answers
Other questions:
  • Two wafer sizes are to be compared: a 156-mm wafer with a processable area = 150mm diameter circle and a 312-mm wafer with a pro
    10·1 answer
  • Why are open systems harder to study than closed systems?​
    6·1 answer
  • Air is pumped from a vacuum chamber until the pressure drops to 3 torr. If the air temperature at the end of the pumping process
    14·1 answer
  • I got a rubber band car assigned as a project today. The goal is for the car to go farther/faster than the car my teacher is mak
    6·1 answer
  • In this assignment, you will demonstrate your ability to write simple shell scripts. This is a cumulative assignment that will c
    8·1 answer
  • What is arduino and for what it is used​
    12·1 answer
  • Rosita is planning an investigation to determine how a lifeboat's shape affects its
    8·1 answer
  • Two common types of glue
    11·2 answers
  • with a digital system, if you have measured incorrectly and use too low of a kvp for adequate penetration, what do you need to d
    9·1 answer
  • Which of the given strategies is specifically a competitive advantage sustainment strategy?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!