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
A car is moving at 68 miles per hour. The kinetic energy of that car is 5 × 10 5 J.How much energy does the same car have when i
Blababa [14]

Answer:

The car has an energy of 1.017 × 10⁵ J when it moves at 97 miles per hour

Explanation:

Given the data in the question;

Initial velocity v₁ = 68 miles per hour = 30.398 meter per seconds

let mass of the car be m

kinetic energy of that car is 5 × 10⁵ J

so

E₁ = \frac{1}{2}mv²

we substitute

5 × 10⁵  = \frac{1}{2} × m × ( 30.398 )²

5 × 10⁵  = \frac{1}{2} × m × ( 30.398 )²

5 × 10⁵ = m × 462.019

m =  5 × 10⁵ / 462.019

m = 1082.2065 kg

Now, Also given that; v₂ = 97 miles per hour = 43.362 meter per seconds

E₂ = \frac{1}{2}mv₂²

we substitute

E₂ = \frac{1}{2} × 1082.2065 × ( 43.362 )²

E₂ = \frac{1}{2} × 1082.2065 × 1880.263

E₂ = 1.017 × 10⁵ J

Therefore, The car has an energy of 1.017 × 10⁵ J when it moves at 97 miles per hour

6 0
3 years ago
A refrigerated space is maintained at -15℃, and cooling water is available at 30℃, the refrigerant is ammonia. The refrigeration
Illusion [34]

Answer:

(1) 5.74

(2) 5.09

(3) 3.05×10⁻⁵ kg/s

(4) 0.00573 kW

Explanation:

The parameters given are;

Working temperature, T_C  = -15°C = 258.15 K

Temperature of the cooling water, T_H = 30°C = 303.15 K

(1) The Carnot coefficient of performance is given as follows;

\gamma_{Max} = \dfrac{T_C}{T_H - T_C}  =  \dfrac{258.15}{303.15 - 258.15}   = 5.74

(2) For ammonia refrigerant, we have;

h_2 = h_g = 1466.3 \ kJ/kg

h_3 = h_f = 322.42 \ kJ/kg

h_4 = h_3 = h_f = 322.42 \ kJ/kg

s₂ = s₁ = 4.9738 kJ/(kg·K)

0.4538 + x₁ × (5.5397 - 0.4538) = 4.9738

∴ x₁ = (4.9738 - 0.4538)/(5.5397 - 0.4538) = 0.89

h_1 = h_{f1} + x_1 \times h_{gf}

h₁ = 111.66 + 0.89 × (1424.6 - 111.66) = 1278.5 kJ/kg

\gamma = \dfrac{h_1 - h_4}{h_2 - h_1}

\gamma = \dfrac{1278.5 - 322.42}{1466.3 - 1278.5} = 5.09

(3) The circulation rate is given by the mass flow rate, \dot m as follows

\dot m = \dfrac{Refrigeration \ capacity}{Refrigeration \ effect \ per \ unit \ mass}

The refrigeration capacity = 105 kJ/h

The refrigeration effect, Q = (h₁ - h₄) = (1278.5 - 322.42) = 956.08 kJ/kg

Therefore;

\dot m = \dfrac{105}{956.08}  = 0.1098 \ kg/h

\dot m = 0.1098 kg/h = 0.1098/(60*60) = 3.05×10⁻⁵ kg/s

(4) The work done, W = (h₂ - h₁) = (1466.3 - 1278.5) = 187.8 kJ/kg

The rating power = Work done per second = W×\dot m

∴ The rating power = 187.8 × 3.05×10⁻⁵ = 0.00573 kW.

6 0
3 years ago
Explain how you could transmit two independent base-band information signals by using SSB on a common carrier frequency.
Goshia [24]

Answer:

Using Hilbert Transformation, we can transmit two independent base-band information signals by using SSB on a common-carrier frequency.

Explanation:

  • In SSB modulators, we pre-process a real signal  by Hilbert Transform filter to form another real signal
  • The signal has the same spectral amplitude but has 90° phase shift at each frequency relative to its input signal.
  • The ordered pair gets almost all of its negative components cancelled
  • thus, with the use of Hilbert Transformation, we can transmit two independent base-band information signals by using SSB on a common carrier frequency.

4 0
4 years ago
Liquid ethanol (C2H5OH) at 298 K, 1 atm enters a steam generator operating at steady state and burns completely with dry air ent
Gennadij [26K]

Answer:

Q= 6491.100 kJ/s

Explanation:

Air-Fuel Ratio:

For a combustion reaction the proportion of air that is present in a gaseous substance responsible for the reaction,this proportion is known as air-fuel ratio.The air fuel ratio is calculated using the combustion reaction for the substance.

Considering reaction for the Ethanol as

C₂H₅OH +XO₂(O₂+3.76N₂)→ aCO₂+bH₂O+cN₂

Balancing the equation we get;

a=2,

2b=6

∴ b=3

xO₂=3

The air-fuel ratio

A/F = XO₂+H₂O+xN₂× mass of N₂/mass(fuel)

3.31×31.9+11.28×28.013/46.069

= 8.943

Equivalent ratio = 0.7,

so, heat transfer

Q= m ×Cp×ΔT

= 75×0.7×112.4(1500-400)

Q= 6491.100 kJ/s

1kJ/s=1000w

∴ Q= 6491100 W

<u />

6 0
4 years ago
For what type of metal is high speed steel drill best suited?
Harrizon [31]
ANSWER-
I believe it would be high speed steel
8 0
3 years ago
Read 2 more answers
Other questions:
  • ______process in sheet metal is used for producing fluid tight joints. A - Hemming B- Seaming C-Beading D-Roll forming
    9·1 answer
  • Liquid ethanol is a flammable fluid and can release vapors that form explosive mixtures at temperatures above its flashpoint at
    9·1 answer
  • Physical items produced in an economy are known as
    15·1 answer
  • Give me some examples of fragile structures.
    5·1 answer
  • How Much do Biomedical Engineers Earn?
    10·2 answers
  • An incompressible viscous fluid flows through a pipe with a flow rate of 1 mL/s. The pipe has a uniform diameter D0 and a length
    13·1 answer
  • What is engineering?
    13·1 answer
  • How to report the analysis and calorific values of fuel​
    6·1 answer
  • If a client is shown the "Cadillac"
    11·1 answer
  • A traffic flow has density 61 veh/km when the speed is 59 veh/hr. If a flow has a jam density of 122 veh/km, what is the maximum
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!