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
Three tool materials (high-speed steel, cemented carbide, and ceramic) are to be compared for the same turning operation on a ba
Tpy6a [65]

Answer:

Among all three tools, the ceramic tool is taking the least time for the production of a batch, however, machining from the HSS tool is taking the highest time.

Explanation:

The optimum cutting speed for the minimum cost

V_{opt}= \frac{C}{\left[\left(T_c+\frac{C_e}{C_m}\right)\left(\frac{1}{n}-1\right)\right]^n}\;\cdots(i)

Where,

C,n = Taylor equation parameters

T_h =Tool changing time in minutes

C_e=Cost per grinding per edge

C_m= Machine and operator cost per minute

On comparing with the Taylor equation VT^n=C,

Tool life,

T= \left[ \left(T_t+\frac{C_e}{C_m}\right)\left(\frac{1}{n}-1\right)\right]}\;\cdots(ii)

Given that,  

Cost of operator and machine time=\$40/hr=\$0.667/min

Batch setting time = 2 hr

Part handling time: T_h=2.5 min

Part diameter: D=73 mm =73\times 10^{-3} m

Part length: l=250 mm=250\times 10^{-3} m

Feed: f=0.30 mm/rev= 0.3\times 10^{-3} m/rev

Depth of cut: d=3.5 mm

For the HSS tool:

Tool cost is $20 and it can be ground and reground 15 times and the grinding= $2/grind.

So, C_e= \$20/15+2=\$3.33/edge

Tool changing time, T_t=3 min.

C= 80 m/min

n=0.130

(a) From equation (i), cutting speed for the minimum cost:

V_{opt}= \frac {80}{\left[ \left(3+\frac{3.33}{0.667}\right)\left(\frac{1}{0.13}-1\right)\right]^{0.13}}

\Rightarrow 47.7 m/min

(b) From equation (ii), the tool life,

T=\left(3+\frac{3.33}{0.667}\right)\left(\frac{1}{0.13}-1\right)\right]}

\Rightarrow T=53.4 min

(c) Cycle time: T_c=T_h+T_m+\frac{T_t}{n_p}

where,

T_m= Machining time for one part

n_p= Number of pieces cut in one tool life

T_m= \frac{l}{fN} min, where N=\frac{V_{opt}}{\pi D} is the rpm of the spindle.

\Rightarrow T_m= \frac{\pi D l}{fV_{opt}}

\Rightarrow T_m=\frac{\pi \times 73 \times 250\times 10^{-6}}{0.3\times 10^{-3}\times 47.7}=4.01 min/pc

So, the number of parts produced in one tool life

n_p=\frac {T}{T_m}

\Rightarrow n_p=\frac {53.4}{4.01}=13.3

Round it to the lower integer

\Rightarrow n_p=13

So, the cycle time

T_c=2.5+4.01+\frac{3}{13}=6.74 min/pc

(d) Cost per production unit:

C_c= C_mT_c+\frac{C_e}{n_p}

\Rightarrow C_c=0.667\times6.74+\frac{3.33}{13}=\$4.75/pc

(e) Total time to complete the batch= Sum of setup time and production time for one batch

=2\times60+ {50\times 6.74}{50}=457 min=7.62 hr.

(f) The proportion of time spent actually cutting metal

=\frac{50\times4.01}{457}=0.4387=43.87\%

Now, for the cemented carbide tool:

Cost per edge,

C_e= \$8/6=\$1.33/edge

Tool changing time, T_t=1min

C= 650 m/min

n=0.30

(a) Cutting speed for the minimum cost:

V_{opt}= \frac {650}{\left[ \left(1+\frac{1.33}{0.667}\right)\left(\frac{1}{0.3}-1\right)\right]^{0.3}}=363m/min [from(i)]

(b) Tool life,

T=\left[ \left(1+\frac{1.33}{0.667}\right)\left(\frac{1}{0.3}-1\right)\right]=7min [from(ii)]

(c) Cycle time:

T_c=T_h+T_m+\frac{T_t}{n_p}

T_m= \frac{\pi D l}{fV_{opt}}

\Rightarrow T_m=\frac{\pi \times 73 \times 250\times 10^{-6}}{0.3\times 10^{-3}\times 363}=0.53min/pc

n_p=\frac {7}{0.53}=13.2

\Rightarrow n_p=13 [ nearest lower integer]

So, the cycle time

T_c=2.5+0.53+\frac{1}{13}=3.11 min/pc

(d) Cost per production unit:

C_c= C_mT_c+\frac{C_e}{n_p}

\Rightarrow C_c=0.667\times3.11+\frac{1.33}{13}=\$2.18/pc

(e) Total time to complete the batch=2\times60+ {50\times 3.11}{50}=275.5 min=4.59 hr.

(f) The proportion of time spent actually cutting metal

=\frac{50\times0.53}{275.5}=0.0962=9.62\%

Similarly, for the ceramic tool:

C_e= \$10/6=\$1.67/edge

T_t-1min

C= 3500 m/min

n=0.6

(a) Cutting speed:

V_{opt}= \frac {3500}{\left[ \left(1+\frac{1.67}{0.667}\right)\left(\frac{1}{0.6}-1\right)\right]^{0.6}}

\Rightarrow V_{opt}=2105 m/min

(b) Tool life,

T=\left[ \left(1+\frac{1.67}{0.667}\right)\left(\frac{1}{0.6}-1\right)\right]=2.33 min

(c) Cycle time:

T_c=T_h+T_m+\frac{T_t}{n_p}

\Rightarrow T_m=\frac{\pi \times 73 \times 250\times 10^{-6}}{0.3\times 10^{-3}\times 2105}=0.091 min/pc

n_p=\frac {2.33}{0.091}=25.6

\Rightarrow n_p=25 pc/tool\; life

So,

T_c=2.5+0.091+\frac{1}{25}=2.63 min/pc

(d) Cost per production unit:

C_c= C_mT_c+\frac{C_e}{n_p}

\Rightarrow C_c=0.667\times2.63+\frac{1.67}{25}=$1.82/pc

(e) Total time to complete the batch

=2\times60+ {50\times 2.63}=251.5 min=4.19 hr.

(f) The proportion of time spent actually cutting metal

=\frac{50\times0.091}{251.5}=0.0181=1.81\%

3 0
4 years ago
For laminar flow over a hot flat plate, the local heat transfer coefficient decreases with distance because (select all that are
avanturin [10]

Answer:

hello the answer options are missing here are the options

A)The thickness of the heated region near the plate is increasing

B)The velocities near the plates are increasing

C)The fluid temperature near the plate are increasing

ANSWER : all of the above

Explanation:

Laminar flow  is the flow of a type of fluid across the surface of an object following regular paths and it is unlike a turbulent flow which flows in irregular paths (encountering fluctuations)

For laminar flow over a hot flat plate, the local heat transfer coefficient decreases with distance because :

  • The thickness of the heated region near the plate is increasing
  • The velocities near the plates are increasing
  • The fluid temperature near the plate are increasing
5 0
3 years ago
Technician A says that after replacing a power steering hose, the system should be flushed, refilled, and bled. Technician B say
dedylja [7]
The. Answer will be D
3 0
4 years ago
Can anyone answer this question
Solnce55 [7]

Answer:

a) 2.18 m/s^2

b) 9.83 m/s

Explanation:

The flywheel has a moment of inertia

J = m * k^2

Where

J: moment of inertia

k: radius of gyration

In this case:

J = 144 * 0.45^2 = 29.2 kg*m^2

The block is attached through a wire that is wrapped around the wheel. The weight of the block causes a torque.

T = p * r

r is the radius of the wheel.

T = m1 * g * r

T = 18 * 9.81 * 0.6 = 106 N*m

The torque will cause an acceleration on the flywheel:

T = J * γ

γ = T/J

γ = 106/29.2 = 3.63 rad/s^2

SInce the block is attached to the wheel the acceleration of the block is the same as the tangential acceleration at the eddge of the wheel:

at = γ * r

at = 3.63 * 0.6 = 2.81 m/s^2

Now that we know the acceleration of the block we can forget about the flywheel.

The equation for uniformly accelerated movement is:

X(t) = X0 + V0*t + 1/2*a*t^2

We can set a frame of reference that has X0 = 0, V0 = 0 and the X axis points in the direction the block will move. Then:

X(t) = 1/2*a*t^2

Rearranging

t^2 = 2*X(t)/a

t = \sqrt{\frac{2*X(t)}{a}}

t = \sqrt{\frac{2*18}{2.81}} = 3.6 s

It will reach the 1.8 m in 3.6 s.

Now we use the equation for speed under constant acceleration:

V(t) = V0 + a*t

V(3.6) = 2.81 * 3.6 = 9.83 m/s

7 0
4 years ago
Malia is working with aluminum wire. while working with this type of wire, she must remember to a. always use pressure-type term
Y_Kistochka [10]

Answer:

B

Explanation:

Aluminium doesn't rust unless exposed to copper for a duration of time.

4 0
3 years ago
Other questions:
  • A specimen of a 4340-steel alloy with a plane strain fracture toughness of 54.8 MPa sqrt(m) (50 ksi sqrt(in.)) is exposed to a s
    11·1 answer
  • Nitrate salts (NO3-), when heated, can produce nitrites (NO2-) plus oxygen (O2). A sample of potassium nitrate is heated, and th
    9·1 answer
  • Two parallel pipelines spaced 0.5 m apart are buried in soil having a thermal conductivity of 0.5 W/m·K. The pipes have outer di
    8·1 answer
  • Water steam enters a turbine at a temperature of 400 o C and a pressure of 3 MPa. Water saturated vapor exhausts from the turbin
    11·1 answer
  • After testing a model of a fuel-efficient vehicle, scientists build a full-sized vehicle with improved fuel efficiency. Which st
    12·1 answer
  • ____________engineers build and test tools and machines, and they rely heavily on computer, math, and problem-solving skills.
    7·2 answers
  • Which one of the following skills is a software engineer specializing in system support expected to possess?
    14·2 answers
  • 1 . How are encoders used in the measurement of speed? Explain the encoder with a neat diagram.
    10·1 answer
  • The standard weight of copper tubing used most frequently in the heating and air-conditioning industry is
    12·1 answer
  • ceramics must be heated in order to harden the clay and make it durable. the equipment used to heat the clay
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!