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
Gtjffs
grandymaker [24]

the required documents is 3000

4 0
3 years ago
A 0.25in diameter steel rod BC is securely attached between two identical 1in diameter copper rods (AB and CD). Find the torque
Helen [10]

Answer:

Tmax= 46.0 lb-in

Explanation:

Given:

- The diameter of the steel rod BC d1 = 0.25 in

- The diameter of the copper rod AB and CD d2 = 1 in

- Allowable shear stress of steel τ_s = 15ksi

- Allowable shear stress of copper τ_c = 12ksi

Find:

Find the torque T_max

Solution:

- The relation of allowable shear stress is given by:

                             τ = 16*T / pi*d^3

                             T = τ*pi*d^3 / 16

- Design Torque T for Copper rod:

                             T_c = τ_c*pi*d_c^3 / 16

                             T_c = 12*1000*pi*1^3 / 16

                             T_c = 2356.2 lb.in

- Design Torque T for Steel rod:

                             T_s = τ_s*pi*d_s^3 / 16

                             T_s = 15*1000*pi*0.25^3 / 16

                             T_s = 46.02 lb.in

- The design torque must conform to the allowable shear stress for both copper and steel. The maximum allowable would be:

                             T = min ( 2356.2 , 46.02 )

                             T = 46.02 lb-in

6 0
3 years ago
Select the correct statement(s) regarding IEEE 802.16 WiMAX BWA. a. WiMAX BWA describes both 4G Mobile WiMAX and fixed WiMax b.
Gala2k [10]

Answer:

d. all of the statements are correct.

Explanation:

WiMAX Broadband Wireless Access has the capacity to provide service up to 50 km for fixed stations. It has capacity of up to 15 km for mobile stations. WiMAX BWA describes both of 4G mobile WiMAX and fixed stations WiMAX. OFMD is used to increase spectral efficiency of WiMAX and to improve noise performance.

5 0
3 years ago
Which of these analysis methods describes neural computing? a. historical if-then-else cases are used to recognize patterns O b.
Lera25 [3.4K]

Historical data is examined for patterns that are then used to make predictions is one of the analysis methods that describe neural computing

What is neural computing?

A neural network is an artificial intelligence technique that instructs computers to analyze data in a manner modeled after the human brain. It is a kind of artificial intelligence technique known as deep learning that makes use of interconnected neurons or nodes in a layered structure to mimic the human brain.

Historical data is nothing but the existing network data which is stored for the predicting in future

In the context of neural networks, the word "pattern" refers to a collection of activations over a group of units (neurons).

Hence to conclude neural netwoks almost describes the patterns

To know more on neural networks follow this link

brainly.com/question/27371893

#SPJ1

3 0
1 year ago
Interpret the assembly program below: MOV R3,R0;
Reika [66]

Answer:

Explanation:

1.  With the operands R0, R1, the program would compute AND operation and ADD operation .

2. The operands could truly be signed 2's complement encoded (i.e Yes) .

3. The overflow truly occurs when two numbers that are unsigned were added and the result is larger than the capacity of the register, in that situation, overflow would occur and it could corrupt the data.

 When the result of an operation is smaller in magnitude than the smallest value represented by the data type, then arithmetic underflow will occur.

7 0
3 years ago
Other questions:
  • Carnot heat engine A operates between 20ºC and 520ºC. Carnot heat engine B operates between 20ºC and 820ºC. Which Carnot heat en
    5·1 answer
  • Discuss the chemical and physical properties of crude oil​
    6·1 answer
  • Traffic at a roundabout moves
    8·1 answer
  • The cost of hiring new employees outpaces the raises for established employees is
    5·1 answer
  • What are the coordinates of the centroid of this figure?
    5·1 answer
  • Does anyone know obamas last name???? please help its for a friend I swear!!!111!!11!
    8·1 answer
  • What kinds of problems or projects would a mechanical engineer work on?
    11·1 answer
  • simple Brayton cycle using air as the working fluid has a pressure ratio of 10. The minimum and maximum temperatures in the cycl
    7·1 answer
  • What is chemical engieering ?​
    9·1 answer
  • PLEASE HELP QUICK!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!