Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting user enter their password or PIN number and uses it later to gain access to the account. One way to combat this problem is with a randomized challenge-response system. In these systems, the user enters different information every time based on a secret in response to a randomly generated challenge. Consider the fol- lowing scheme in which the password consists of a five-digit PIN number (00000 to 99999). Each digit is assigned a random number that is 1, 2, or 3. The user enters the random numbers that correspond to their PIN instead of their actual PIN numbers.For example, consider an actual PIN number of 12345. To authenticate the user would be presented with a screen such as:PIN: 0 1 2 3 4 5 6 7 8 9 NUM: 3 2 3 1 1 3 2 2 1 3The user would enter 23113 instead of 12345. This doesn’t divulge the password even if an attacker intercepts the entry because 23113 could correspond to other PIN numbers, such as 69440 or 70439. The next time the user logs in, a different sequence of random numbers would be generated, such as: PIN: 0 1 2 3 4 5 6 7 8 9 NUM: 1 1 2 3 1 2 2 3 3 3Your program should simulate the authentication process. Store an actual PIN number in your program. The program should use an array to assign random numbers to the digits from 0 to 9. Output the random digits to the screen, input the response from the user, and output whether or not the user’s response correctly matches the PIN number.I have this code so far, but would like to input cstrings and vectors to fulfill the requirements, I need help with that. This is for c++ for beginners#include #include #include #include using namespace std;void generateRandomNumbers(int *random){ // Use current time as seed for random generatorsrand(time(0));for(int i=0;i<10;i++){random[i] = 1 + rand() % 3;}}bool isMatch(string pin,string randomPin,int *random){int index;for(int i=0;i<(int)pin.length();i++){ //converting pin number to int so that we can check the random number at that indexindex = pin[i]-'0';if((randomPin[i]-'0') != random[index-1])return false;}return true;}int main(){string pin = "12345";string randomPin;int random[10];generateRandomNumbers(random);cout << "Randomly Generated numbers " << endl;for(int i=0;i<10;i++){cout << random[i] << " ";}cout << endl;cout << "Now Enter your pin interms of random numbers: ";cin >> randomPin;if(isMatch(pin,randomPin,random)){cout << "Both matches" << endl;}else{cout << "Sorry you entered wrong pin.." << endl;}}

Answers

Answer 1

The following code or the program will be used:

Explanation:

import java.util.Scanner;

public class Authenticate

{

public static void main(String[] args)

{

// Actual password is 99508

int[] actual_password = {9, 9, 5, 0, 8};

// Array to hold randomly generated digits

int[] random_nums = new int[10];

// Array to hold the digits entered by the user to authenticate

int[] entered_digits = new int[actual_password.length];

// Randomly generate numbers from 1-3 for

// for each digit

for (int i=0; i < 10; i++)

{

random_nums[i] = (int) (Math.random() * 3) + 1;

}

// Output the challenge

System.out.println("Welcome! To log in, enter the random digits from 1-3 that");

System.out.println("correspond to your PIN number.");

System.out.println();

System.out.println("PIN digit: 0 1 2 3 4 5 6 7 8 9");

System.out.print("Random #: ");

for (int i=0; i<10; i++)

{

System.out.print(random_nums[i] + " ");

}

System.out.println();

System.out.println();

// Input the user's entry

Scanner keyboard = new Scanner(System.in);

System.out.println("Enter code.");

String s = keyboard.next();

String s = keyboard.next();

// Extract the digits from the code and store in the entered_digits array

for (int i=0; i<s.length(); i++)

{

entered_digits[i] = s.charAt(i) - '0'; // Convert char to corresponding digit

}

// At this point, if the user typed 12443 then

// entered_digits[0] = 1, entered_digits[1] = 2, entered_digits[2] = 4,

// entered_digits[3] = 4, and entered_digits[4] = 3

/****

TO DO: fill in the parenthesis for the if statement

so the isValid method is invoked, sending in the arrays

actual_password, entered_digits, and random_nums as

parameters

***/

if (isValid (actual_password, entered_digits, random_nums)) // FILL IN HERE

{

System.out.println("Correct! You may now proceed.");

}

else

{

System.out.println("Error, invalid password entered.");

}

/***

TO DO: Fill in the body of this method so it returns true

if a valid password response is entered, and false otherwise.

For example, if:

actual = {9,9,5,0,8}

randnums = {1,2,3,1,2,3,1,2,3,1}

then this should return true if:

entered[0] == 1 (actual[0] = 9 -> randnums[9] -> 1)

entered[1] == 1 (actual[1] = 9 -> randnums[9] -> 1)

entered[2] == 3 (actual[2] = 5 -> randnums[5] -> 3)

entered[3] == 1 (actual[3] = 0 -> randnums[0] -> 1)

entered[4] == 3 (actual[4] = 8 -> randnums[8] -> 3)

or in other words, the method should return false if any of

the above are not equal.

****/

public static boolean isValid(int[] actual, int[] entered, int[] randnums)

{

int Index = 0;

boolean Valid = true;

while (Valid && (Index < actual.length))

{

int Code = actual[Index];

if (entered [Index] != randnums [Code])

{

Valid = false;

}

Index++;

}

return Valid;

}


Related Questions

a pressure vessel of 250-mm inner diameter and 6-mm wall thickness is fabricated from a 1.2-m section of spirally welded pipe AB and is equipped with two rigid end plates. the gage pressure inside the vessel is 2 MPa, and 45-kN centric axial forces P and P' are applied to the end plates. Determine a) the normal stress perpendicular to the weld b) the shearing stress parallel to the weld.

Answers

Final answer:

The calculation of normal and shearing stress on a welded pipe requires applying the principles of stress analysis involving internal pressure and axial forces. Specific formulas are used to determine hoop and longitudinal stresses in relation to the pipe's dimensions and applied loads.

Explanation:

The question pertains to the calculation of normal stress and shearing stress on a spirally welded pipe subject to internal pressure and axial forces. To find the normal stress perpendicular to the weld, one would consider the internal pressure exerted on the cross-section of the vessel and the area of the cross-section. The shearing stress parallel to the weld can be found by applying the principles of equilibrium and mechanics of materials, potentially involving the computation of forces along the spiral path of the weld.

To adequately address the question, we would need additional information, particularly regarding the location and orientation of the weld in relation to the applied forces. Without this, it is not possible to provide a detailed solution. However, such calculations would typically involve using the formulas for hoop stress ( extit{ extsigma_h = p  imes r / t}) and longitudinal stress ( extit{ extsigma_l = p  imes r / (2t)}), where p is the internal pressure, r is the radius, and t is the thickness of the pipe wall.

A turbojet aircraft is flying with a velocity of 280 m/s at an altitude of 9150 m, where the ambient conditions are 32 kPa and -32C. The pressure ratio across the compressor is 12, and the temperature at the turbine inlet is 1100 K. Air enters the compressor at a rate of 50 kg/s, and the jet fuel has a heating value of 42,700 kJ/kg. Assume constant specific heats for air at room temperature. Efficiency of the compressor is 80%, efficiency of the turbine is 85%. Assume air leaves diffuser with negligibly small velocity.
determine
(a) The velocity of the exhaust gases.
(b) The rate of fuel consumption.

Answers

Answer:

(a) The velocity of the exhaust gases. is 832.7 m/s

(b) The rate of fuel consumption is 0.6243 kg/s

Explanation:

For the given turbojet engine operating on an ideal cycle, the pressure ,temperature, velocity, and specific enthalpy of air at [tex]i^{th}[/tex] state are [tex]P_i[/tex] , [tex]T_i[/tex] , [tex]V_i[/tex] , and [tex]h_i[/tex] , respectively.

Use "ideal-gas specific heats of various common gases" to find the properties of air at room temperature.

Specific heat at constant pressure, [tex]c_p[/tex] = 1.005 kJ/kg.K

Specific heat ratio, k = 1.4

A solid circular shaft has a uniform diameter of 5 cm and is 4 m long. At its midpoint 65 hp is delivered to the shaft by means of a belt passing over a pulley. This power is used to drive two machines, one at the left end of the shaft consuming 25 hp and one at the right end consuming the remaining 40 hp. Determine:

a) The maximum shearing stress in the shaft.
b) The relative angle of twist between the two extreme ends of the shaft. The shaft turns at 200 rpm and the material is steel for which G = 80 GPa.

Answers

Answer:

A) τ_max = 59.139 x 10^(6) Pa

B) θ = 0.0228 rad.

Explanation:

A) In the left half of the shaft we have 25 hp which corresponds to a torque T1 given by;

P = Tω

Where P is power and ω is angular speed.

Power = 25 HP = 25 x 746 W = 18650W

ω = 200 rev/min = 200 x 0.10472 rad/s = 20.944 rad/s

P = T1•ω

T1 = P/ω = 18650/20.944

T1 = 890.47 N.m

Similarly, in the right half we have 40 hp corresponding to a torque T2

given by;

P = T2•ω

T2 = P/ω

Where P = 40 x 760 = 30,400W

T2 = 30400/20.944 = 1451.49 N.m

The maximum shearing stress consequently occurs in the outer fibers in the right half and is given by;

τ_max = Tρ/J

Where J is polar moment of inertia and has the formula ;J = πd⁴/32

d = 5cm = 0.05m

J = π(0.05)⁴/32 = 6.136 x 10^(-7) m⁴

ρ = 0.05/2 = 0.025m

T will be T2 = 1451.49 N.m

Thus,

τ_max = Tρ/J

τ_max = 1451.49 x 0.025/6.136 x 10^(-7)

τ_max = 59139022.94 N/m² = 59.139 x 10^(6) Pa

B) The angles of twist of the left and right ends relative to the center are, respectively, using θ = TL/GJ

G = 80 Gpa = 80 x 10^(9) Pa

θ1 = (890.47 x 2)/(80 x 10^(9) x 6.136 x 10^(-7)) = 0.0363 rad

Similarly;

θ2 = (1451.49 x 2)/(80 x 10^(9) x 6.136 x 10^(-7)) = 0.0591 rad

Since θ1 and θ2 are in the same direction, the relative angle of twist between the two ends of the shaft is

θ = θ2 – θ1

θ = 0.0591 - 0.0363

θ = 0.0228 rad.

A PMDC machine is measured to va120Vdc, ia 5.5A at the electrical terminals and the shaft is measured to have Tmech 5.5Nm, ns1200RPM. State whether the machine acting as a motor or a generator and state the efficiency of the system. Q11. Motor, 89.4 %(a) Generator, 89.4%(b) Motor, 95.5%(c) Generator, 95.5 %(d) none of the abov

Answers

Answer:

(c) Generator, 95.5 %

Explanation:

given data

voltage va = 120V

current Ia = - 5.5 A

Tmech =  5.5Nm

ns = 1200 RPM

solution

first we get here electric input power that is express as

electric input power = va × Ia    ......1

put here value and we get

electric input power = 120 × -5-5

electric input power -660 W

here negative mean it generate power

and here

Pin ( mech) will be

Pin ( mech) = Tl × ω   .........2

Pin ( mech) = 5.5 × [tex]\frac{2\pi N}{60}[/tex]    

Pin ( mech) =  5.5 × [tex]\frac{2\pi 1200}{60}[/tex]  

Pin ( mech) = 691.150 W

and

efficiency will be here as

efficiency = [tex]\frac{660}{691.150}[/tex]    

efficiency = 95.5 %

so correct option is (c) Generator, 95.5 %

Steam enters a counterflow heat exchanger operating at steady state at 0.07 MPa with a quality of 0.9 and exits at the same pressure as saturated liquid. The steam mass flow rate is 1.5 kg/min. A separate stream of air with a mass flow rate of 100 kg/min enters at 30°C and exits at 60°C. The ideal gas model with 1.005 kJ/kg · K can be assumed for air. Kinetic and potential energy effects are negligible. Determine the temperature of the entering steam, in °C, and for the overall heat exchanger as the control volume, what is the rate of heat transfer, in kW.

Answers

Answer:

1.12kw is the heat transfer

Explanation:

Kinetic energy is the energy an object has because of its motion. If we want to accelerate an object, then we must apply a force.

Potential energy, stored energy that depends upon the relative position of various parts of a system.

See attachment for the step by step solution.

A 2-kg sphere A strikes the frictionless inclined surface of a 6-kg wedge B at a 90 degree angle with a velocity of magnitude 4 m/s. The wedge can roll freely on the ground and is initially at rest. Knowing that the coefficient of restitution between the wedge and the sphere is 0.5 and that the inclined surface of the wedge forms an angle θ=40 degrees with the horizontal, determine the velocities of the sphere and the wedge immediately after impact.

Answers

Answer:

Final velocities are:

Wedge B: v = 2.334 m/s

Sphere A: v = 5.386 m/s

Explanation:

Given:-

- The mass of sphere A,  mA = 2-kg

- The mass of the wedge B,  mB = 6-kg

- The sphere collides with " normal " to the wedge face.

- The coefficient of restitution , e = 0.5

- The wedge inclination angle, θ=40 degrees with the horizontal.

- The initial speed of sphere A, vA = 4m/s

- The initial speed of wedge B, vB = 0 m/s ... ( rest )

Find:-

- First step would be to sketch a system of sphere A and wedge B as ( FBD ).

- We will add a sketch of "two" coordinate axes on the ( FBD ).

   First coordinate system ( normal ( n ) - tangent ( t ) )

Normal axis at 90 degrees directed towards the wedge in direction of sphere motion - denote as ( n ).Tangent axis along ( parallel ) to the wedge surface directed up the wedge - denote as ( t )

    Second coordinate system ( horizontal ( x ) - vertical ( y ) )

Horizontal axis parallel to ground directed towards the right in assumed direction of wedge motion after impact - denote as ( x ).Vertical axis normal to the ground directed upwards -denote ( y ).

Note:- All the above directions of coordinate axes denote the positive direction of vectors.

- Resolve the angle ( α ) between the normal - ( n ) or velocity vector vA and the horizontal - ( x ) axis.

                               

                            α = 90° - θ = 90° - 40°

                            α = 50°  

- We will denote the final velocity components of sphere A as ( v'An , v'At ):

And, final velocity components of wedge B as ( v'B ).

- Transform the the final velocity of wedge ( vB' ) in the (n-t) coordinate axis using the resolved coordinate transformation angle ( α ). The normal  ( n ) and tangential components of the velocity vector ( vB' ) are: ( vB'n , vB't ).

                     vB'n = vB'*cos ( α )             vB't = vB'*sin ( α° )

                    vB'n = vB'*cos ( 50° )         vB't = vB'*sin ( 50° )

- Note: There is no y-component of velocity of wedge. This is because the motion of wedge in the vertical direction is restricted by the ground - equilibrium conditions. Hence, v'By = 0.

- Consider the system of sphere A and wedge B to be isolated with no external forces acting on the system. For such conditions the principle of conservation of momentum ( P ) is valid. Which states:

                        PA,i + PBi = PA,f + PB,f

Where,

           PA,i : The initial momentum of the sphere A

           PB,i : The initial momentum of wedge B

           PA,f : The final momentum of the sphere A

           PB,f : The final momentum of wedge B.

- Using the data given and relations computed in the ( n-t ) coordinate system. We will use the principle of conservation of linear momentum in both axis ( n and t ) combined in vector momentum of system.

Conservation of linear momentum:

                       

                      [tex]m_A*v_A + m_B*v_B = m_A*v_A' + m_B*v_B'[/tex]

- Using vector notations we have, Taking ( i unit vector in tangential direction and j unit vector in the normal direction ):

                       [tex]m_A*v_A_n j = m_A*( v_A'_t i + v_A'_n j )+ m_B* ( v_B'_n j + v_B'_t i )\\\\2*4 j = 2*( v_A'_t i + v_A'_n j )+ 6* ( v_B'_n j + v_B'_t i )\\\\0 i + 8 j = ( 2*v_A'_t + 6*v_B'*sin ( 50 ) ) i + ( 2*v_A'_n + 6*v_B'* cos (50 ) ) j[/tex]

- Equate all the ( i - j ) vectors on left and right hand side of the equation respectively,

               [tex]0 = 2*v_A'_t + 6*v_B'*sin ( 50 )\\\\\\ 8 = 2*v_A'_n + 6*v_B'* cos(50 )[/tex]         .... Eq 1

       

- The coefficient of restitution ( e ) is a squared loss of kinetic energy of the system that can be expressed in terms of velocities of two objects as relative change in velocity of two objects after and before impact.:

                             [tex]e = \frac{v_B'_n - v_A'_n}{v_A_n - v_B_n}[/tex]

Note: We have only used the velocities normal to the surface of wedge. This is because the kinetic loss is a scalar dimension; hence, the normal direction to the surface of impact is assumed to cater all the loss in kinetic energy.

We have,

                            [tex]0.5 = \frac{v_B'*cos ( 50 ) - v_A'_n}{ 4 - 0}\\\\2 = v_B'*cos ( 50 ) - v_A'_n \\\\v_B'*cos ( 50 ) = v_A'_n + 2[/tex]       ..... Eq 2

- Now substitute equation 2 into equation 1:

                             [tex]8 = 2*v_A'_n + 6*( v_A'_n + 2 )\\\\-4 = 8*v_A'_n\\\\v_A'_n = -0.5 \frac{m}{s}[/tex]

- Using Equation 2 compute v'B:

                 

                             [tex]v_B'*cos ( 50 ) = -0.5 + 2\\\\v_B'= \frac{1.5}{cos ( 50 ) } \\\\v_B'= 2.334 \frac{m}{s}[/tex]

- Using Equation 1 compute v'At:

                             [tex]0 = 2*v_A'_t + 6*2.334*sin ( 50 )\\\\v_A'_t = - \frac{6*2.334*sin ( 50 )}{2} \\\\v_A'_t = - 5.363 \frac{m}{s}[/tex]

- The final velocity of wedge B along the horizontal direction ( x ) is:

                          vB' = 2.334 m/s   .... x-direction

- The velocity of sphere A after impact is given by:

                             

                          [tex]v_A' = \sqrt{v_A't^2 + v_A'n^2}\\\\v_A' = \sqrt{5.363^2 + 0.5^2}\\\\v_A' = \sqrt{29.011769}\\\\v_A' = 5.386 \frac{m}{s}[/tex]

                         

                             

                   

                   

                           

     

The fully corrected endurance strength for a steel rotating shaft is 42 kpsi, the ultimate tensile strength is 120 kpsi, the yield strength Sy=65 kpsi, and the fatigue stress correction factor Kf = 1.96. The maximum bending stress is 43 kpsi and the minimum stress is 0 kpsi. What is the factor of safety against first-cycle-yielding?

Answers

Answer:

The factor of safety is 1.186

Explanation:

Find the attachment

5.3-16 A professor recently received an unexpected $10 (a futile bribe attached to a test). Being the savvy investor that she is, the professor decides to invest the $10 into a savings account that earns 0.5% interest compounded monthly (6.17% APY). Furthermore, she decides to supplement this initial investment with an additional $5 deposit made every month, beginning the month immediately following her initial investment.
(a) Model the professor's savings account as a constant coefficient linear difference equation. Designate yln] as the account balance at month n, where n corresponds to the first month that interest is awarded (and that her $5 deposits begin).
(b) Determine a closed-form solution for y[n] That is, you should express yIn] as a function only of n.
(c) If we consider the professor's bank account as a system, what is the system impulse response h[n]? What is the system transfer function Hz]?
(d) Explain this fact: if the input to the professor's bank account is the everlasting exponential xn] 1 is not y[n] I"H[I]-HII]. 1, then the output

Answers

Answer:

a) y (n + 1) = 1.005 y(n) + 5U n

y (n + 1) - 1.005 y(n) = 5U (n)

b) Z^-1(Z(y0)=y(n) = [1010(1.005)^n - 1000(1)^n] U(n)

c) h(n) = (1.005)^n U(n - 1) + 10(1.005)^n U(n)

Explanation:

Her bank account can be modeled as:

y (n + 1) = y (n) + 0.5% y(n) + $5

y (n + 1) = 1.005 y(n) + 5U n

Given that y (0) = $10

y (n + 1) - 1.005 y(n) = 5U (n)

Apply Z transform on both sides

= ZY ((Z) - Z(y0) - 1.005) Z = 5 U (Z)

U(Z) = Z {U(n)} = Z/ Z - 1

Y(Z) [Z- 1.005] = Z y(0) + 5Z/ Z - 1

= 10Z/ Z - 1.005 + 5Z/(Z - 1) (Z - 1.005)

Y(Z) = 10Z/ Z - 1.005 + 1000Z/ Z - 1.005 + 1000Z/ Z - 1

= 1010Z/Z- 1.005 - 1000Z/Z-1

Apply inverse Z transform

Z^-1(Z(y0)) = y(n) = [1010(1.005)^n - 1000(1)^n] U(n)

Impulse response in output when input f(n) = S(n)

That is,

y(n + 1)= 1. 005y (n) + 8n

y(n + 1) - 1.005y (n) = 8n

Apply Z transform

ZY (Z) - Z(y0) - 1.005y(Z) = 1

HZ (Z - 1.005) = 1 + 10Z [Therefore y(Z) = H(Z)]

H(Z) = 1/ Z - 1.005 + 10Z/Z - 1. 005

Apply inverse laplace transform

= h(n) = (1.005)^n U(n - 1) + 10(1.005)^n U(n)

A preheater involves the use of condensing steam at 100o C on the inside of a bank of tubes to heat air that enters at I atm and 25o C. The air moves at 5 m/s in cross flow over the tubes. Each tube is 1 m long and has an outside diameter of 10 mm. The bank consists of 196 tubes in a square, aligned array for which ST = SL = 15 mm. What is the total rate of heat transfer to the air? What is the pressure drop associated with the airflow?

(b) Repeat the analysis of part (a), but assume that the tubes have a staggered arrangement with ST = 15 mm and SL = 10 mm.

Answers

Answer:

Please see the attached file for the complete answer.

Explanation:

Air is compressed from 100 kPa, 300 K to 1000 kPa in a two-stage compressor with intercooling between stages. The intercooler pressure is 300 kPa. The air is cooled back to 300 K in the intercooler before entering the second compressor stage. Each compressor stage is isentropic. Please calculate the total compressor work per unit of mass flow (kJ/kg). Repeat for a single stage of isentropic compression from the given inlet to the final pressure.

Answers

Answer:

The total compressor work is 234.8 kJ/kg for a isentropic compression

Explanation:

Please look at the solution in the attached Word file

Final answer:

The total compressor work per unit of mass flow in a two-stage compressor with intercooling can be calculated by summing the compressor work in each stage and the work done in the intercooler.

Explanation:

The total compressor work per unit of mass flow in a two-stage compressor with intercooling can be calculated by summing the compressor work in each stage and the work done in the intercooler.

In the first stage, the air is compressed from 100 kPa to 300 kPa. The work done in this stage can be calculated using the isentropic compression process. In the second stage, the air is further compressed from 300 kPa to 1000 kPa. The work done in this stage can also be calculated using the isentropic compression process.

To calculate the total compressor work per unit of mass flow, you need to sum the work done in each stage and the work done in the intercooler.

Steel (AISI 1010) plates of thickness δ = 6 mm and length L = 1 m on a side are conveyed from a heat treatment process and are concurrently cooled by atmospheric air of velocity u[infinity] = 10 m/s and T[infinity] = 20°C in parallel flow over the plates. For an initial plate temperature of Ti = 300°C, what is the rate of heat transfer from the plate? What is the corresponding rate of change of the plate temperature? The velocity of the air is much larger than that of the plate.

Answers

Answer:

Rate of heat transfer from plate

6796.16 W

Corresponding rate of change of plate temperature

-2634 degrees.Celcius/sec

Explanation:

In this question, we are asked to calculate the rate of heat transfer and the corresponding rate of change of the plate temperature.

Please check attachment for complete solution and step by step explanation

An air-conditioning system is used to maintain a house at 70°F when the temperature outside is 100°F. The house is gaining heat through the walls and the windows at a rate of 800 Btu/min, and the heat generation rate within the house from people, lights, and appliances amounts to 100 Btu/min. Determine the minimum power input required for this air- conditioning system.

Answers

Answer:

Minimum power output required = 1.1977 hp

Explanation:

Given Data:

Temperature outside = 100°F.

House temperature =  70°F

Rate of heat gain(Qw) =  800 Btu/min

Generation rate within(Ql) = 100 Btu/min.

Converting the outside temperature 100°F from fahrenheit to ranking, we have;

1°F = 460R

Therefore,

100°F = 460+100

 To     = 560 R

Converting the house temperature 70°F from fahrenheit to ranking, we have;

1°F = 460R

Therefore,

70°F = 460+70

    Th      = 530 R

Consider the equation for coefficient of performance (COP) of refrigerator in terms of temperature;

COP =Th/(To-Th)

        = 530/(560-530)

        = 530/30

        = 17.66

Consider the equation for coefficient of performance (COP) of refrigerator;

COP = Desired output/required input

         =  Q/Wnet

          = Ql + Qw/ Wnet

Substituting into the formula, we have;

17.667 = (100 + 800)/Wnet

17.667 = 900/Wnet

Wnet = 900/17.667

         = 50.94 Btu/min.

Converting from Btu/min. to hp, we have;

1 hp = 42.53 Btu/min.

Therefore,

50.94 Btu/min =  50.94 / 42.53

                         = 1.1977 hp =

Therefore, minimum power output required = 1.1977 hp

Given the following data:

Outside temperature = 100°F.House temperature =  70°F.Rate of heat gain =  800 Btu/min.Heat generation rate = 100 Btu/min.

The conversion of temperature.

We would convert the value of the temperatures in Fahrenheit to Rankine.

Note: 1°F = 460R

Conversion:

Outside temperature = 100°F = [tex]460+100[/tex] = 560RHouse temperature =  70°F = [tex]460+70[/tex] = 530R

To calculate the minimum power input that is required for this air- conditioning system:

The coefficient of performance (COP)

In Science, the coefficient of performance (COP) is a mathematical expression that is used to show the relationship between the power output of an air-conditioning system and the power input of its compressor.

Mathematically, the coefficient of performance (COP) is given by the formula:

[tex]COP =\frac{T_h}{T_o-T_h}[/tex]

Substituting the given parameters into the formula, we have;

[tex]COP =\frac{530}{560-530}\\ \\ COP =\frac{530}{30}[/tex]

COP = 17.66

For the power input:

[tex]COP = \frac{E_o}{E_i} \\ \\ COP = \frac{Q_l + Q_w}{Q_{net}}\\ \\ 17.67 = \frac{100+800}{Q_{net}}\\ \\ Q_{net}=\frac{900}{17.67} \\ \\ Q_{net}=50.93\;Btu/min[/tex]

Conversion:

1 hp = 42.53 Btu/min.

X hp = 50.93 Btu/min.

Cross-multiplying, we have:

[tex]X=\frac{50.93}{42.53} [/tex]

X = 1.1975 hp

Read more on power input here: https://brainly.com/question/16188638

More discussion about seriesConnect(Ohm) function In your main(), first, construct the first circuit object, called ckt1, using the class defined above. Use a loop to call setOneResistance() function to populate several resistors. Repeat the process for another circuit called ckt2. Develop a member function called seriesConnect() such that ckt2 can be connected to ckt1 using instruction ckt1.seriesConnect(ckt2).

Answers

Answer:

resistor.h

//circuit class template

#ifndef TEST_H

#define TEST_H

#include<iostream>

#include<string>

#include<vector>

#include<cstdlib>

#include<ctime>

#include<cmath>

using namespace std;

//Node for a resistor

struct node {

  string name;

  double resistance;

  double voltage_across;

  double power_across;

};

//Create a class Ohms

class Ohms {

//Attributes of class

private:

  vector<node> resistors;

  double voltage;

  double current;

//Member functions

public:

  //Default constructor

  Ohms();

  //Parameterized constructor

  Ohms(double);

  //Mutator for volatage

  void setVoltage(double);

  //Set a resistance

  bool setOneResistance(string, double);

  //Accessor for voltage

  double getVoltage();

  //Accessor for current

  double getCurrent();

  //Accessor for a resistor

  vector<node> getNode();

  //Sum of resistance

  double sumResist();

  //Calculate current

  bool calcCurrent();

  //Calculate voltage across

  bool calcVoltageAcross();

  //Calculate power across

  bool calcPowerAcross();

  //Calculate total power

  double calcTotalPower();

  //Display total

  void displayTotal();

  //Series connect check

  bool seriesConnect(Ohms);

  //Series connect check

  bool seriesConnect(vector<Ohms>&);

  //Overload operator

  bool operator<(Ohms);

};

#endif // !TEST_H

resistor.cpp

//Implementation of resistor.h

#include "resistor.h"

//Default constructor,set voltage 0

Ohms::Ohms() {

  voltage = 0;

}

//Parameterized constructor, set voltage as passed voltage

Ohms::Ohms(double volt) {

  voltage = volt;

}

//Mutator for volatage,set voltage as passed voltage

void Ohms::setVoltage(double volt) {

  voltage = volt;

}

//Set a resistance

bool Ohms::setOneResistance(string name, double resistance) {

  if (resistance <= 0){

      return false;

  }

  node n;

  n.name = name;

  n.resistance = resistance;

  resistors.push_back(n);

  return true;

}

//Accessor for voltage

double Ohms::getVoltage() {

  return voltage;

}

//Accessor for current

double Ohms::getCurrent() {

  return current;

}

//Accessor for a resistor

vector<node> Ohms::getNode() {

  return resistors;

}

//Sum of resistance

double Ohms::sumResist() {

  double total = 0;

  for (int i = 0; i < resistors.size(); i++) {

      total += resistors[i].resistance;

  }

  return total;

}

//Calculate current

bool Ohms::calcCurrent() {

  if (voltage <= 0 || resistors.size() == 0) {

      return false;

  }

  current = voltage / sumResist();

  return true;

}

//Calculate voltage across

bool Ohms::calcVoltageAcross() {

  if (voltage <= 0 || resistors.size() == 0) {

      return false;

  }

  double voltAcross = 0;

  for (int i = 0; i < resistors.size(); i++) {

      voltAcross += resistors[i].voltage_across;

  }

  return true;

}

//Calculate power across

bool Ohms::calcPowerAcross() {

  if (voltage <= 0 || resistors.size() == 0) {

      return false;

  }

  double powerAcross = 0;

  for (int i = 0; i < resistors.size(); i++) {

      powerAcross += resistors[i].power_across;

  }

  return true;

}

//Calculate total power

double Ohms::calcTotalPower() {

  calcCurrent();

  return voltage * current;

}

//Display total

void Ohms::displayTotal() {

  for (int i = 0; i < resistors.size(); i++) {

      cout << "ResistorName: " << resistors[i].name << ", Resistance: " << resistors[i].resistance

          << ", Voltage_Across: " << resistors[i].voltage_across << ", Power_Across: " << resistors[i].power_across << endl;

  }

}

//Series connect check

bool Ohms::seriesConnect(Ohms ohms) {

  if (ohms.getNode().size() == 0) {

      return false;

  }

  vector<node> temp = ohms.getNode();

  for (int i = 0; i < temp.size(); i++) {

      this->resistors.push_back(temp[i]);

  }

  return true;

}

//Series connect check

bool Ohms::seriesConnect(vector<Ohms>&ohms) {

  if (ohms.size() == 0) {

      return false;

  }

  for (int i = 0; i < ohms.size(); i++) {

      this->seriesConnect(ohms[i]);

  }

  return true;

}

//Overload operator

bool Ohms::operator<(Ohms ohms) {

  if (ohms.getNode().size() == 0) {

      return false;

  }

  if (this->sumResist() < ohms.sumResist()) {

      return true;

  }

  return false;

}

main.cpp

#include "resistor.h"

int main()

{

   //Set circuit voltage

  Ohms ckt1(100);

  //Loop to set resistors in circuit

  int i = 0;

  string name;

  double resistance;

  while (i < 3) {

      cout << "Enter resistor name: ";

      cin >> name;

      cout << "Enter resistance of circuit: ";

      cin >> resistance;

      //Set one resistance

      ckt1.setOneResistance(name, resistance);

      cin.ignore();

      i++;

  }

  //calculate totalpower and power consumption

  cout << "Total power consumption = " << ckt1.calcTotalPower() << endl;

  return 0;

}

Output

Enter resistor name: R1

Enter resistance of circuit: 2.5

Enter resistor name: R2

Enter resistance of circuit: 1.6

Enter resistor name: R3

Enter resistance of circuit: 1.2

Total power consumption = 1886.79

Explanation:

Note

Please add all member function details.Its difficult to figure out what each function meant to be.

The steel bar has a 20 x 10 mm rectangular cross section and is welded along section a-a. The weld material has a tensile yield strength of 325 MPa and a shear yield strength of 200 MPa, and the bar material has a tensile yield strength of 350 MPa. An overall factor of safety of at least 2.0 is required. Find the largest load P that can be applied, to satisfy all criteria.

Answers

Final answer:

The largest load P that can be applied to the steel bar, ensuring a factor of safety of 2.0 with respect to the weld material's tensile yield strength, is 32.5 kN. This is calculated based on the allowable tensile strength of the weld after applying the factor of safety and the cross-sectional area of the steel bar.

Explanation:

The student's question relates to the structural engineering concept of material strength and loading. The maximum load P that can be safely applied to a welded steel bar can be determined by considering the tensile and shear yield strengths of the two materials involved, i.e., the weld material and the bar material. Using the given factor of safety of 2.0, the tensile strength of the weld and the bar, and the cross section of the bar, we can calculate the allowable tensile stress and then the maximum load P by dividing the allowable tensile stress by the area of the cross section.

To begin with, we find the allowable tensile strength by dividing the weld material's yield strength (which is the weaker material concerning tensile strength) by the factor of safety:

Allowable tensile strength for weld = 325 MPa / 2 = 162.5 MPa

Next, we need to calculate the area of the cross-section of the bar:

Area (A) = 20 mm x 10 mm = 200 mm² = 200 x 10⁻⁶ m²

Now, we convert the units of the allowable tensile strength to N/m² (because 1 MPa = 1 x 10⁶ N/m²) and calculate the maximum tensile load (Ptensile) that the weld can sustain:

Allowable tensile strength for weld in N/m² = 162.5 x 10⁶ N/m²Ptensile = Allowable tensile strength for weld x AreaPtensile = (162.5 x 10⁶ N/m²) x (200 x 10⁻⁶ m²)Ptensile = 32.5 x 10³ N = 32.5 kN

Thus, the largest load P that can be applied to the steel bar to satisfy the safety criteria is 32.5 kN.

An air-standard cycle with constant specific heats at room temperature is executed in a closed system with 0.003 kg of air and consists of the following three processes:

1–2 v = Constant heat addition from 95 kPa and 17°C to 380 kPa
2–3 Isentropic expansion to 95 kPa
3–1 P = Constant heat rejection to initial state

The properties of air at room temperature are cp = 1.005 kJ/kg·K, cv = 0.718 kJ/kg·K, and k = 1.4

a) Show cycle on P-v and T-s diagrams
b) Calculate net work per cycle in kJ
c) Determine thermal efficiency

Answers

Answer:

A) I attached the diagrams

B)W_net = 0.5434 KJ

C) η_th = 0.262

Explanation:

A) I've attached the P-v and T-s diagrams

B) The temperature at state 2 can be calculated from ideal gas equation at constant specific volume;

So; P2/P1 = T2/T1

Thus, T2 = P2•T1/P1

We are given that;

P2 = 380 KPa

P1 = 95 KPa

T1 = 17 °C = 17 + 273K = 290K

Thus,

T2 = (380 x 290)/95

T2 = 1160 K

While the temperature at state 3 will be gotten from;

T3 = T2 x (P3/P2)^((γ - 1)/γ)

Where γ = cp/cv = 1.005/0.718 = 1.4

Thus;

T3 = 1160 (95/380)^((1.4 - 1)/1.4)

T3 = 780.6 K

Now, net work done is given by the formula;

W_net = Q_in - Q_out

W_net = Q_1-2 - Q_3-1

W_net = m(u2 - u1) - m(h3 - h1)

W_net = m(u2 - u1 - h3 + h1)

From the first table i attached,

At T1 = 290K, u1 = 206.91 KJ/Kg and h1 = 290.16 KJ/Kg

At T2 = 1160K,u2 = 897.91 KJ/Kg

At T3 = 780K, h3 = 800.03 KJ/Kg

We are also given that m = 0.003 kg

Thus;

W_net = 0.003(897.91 - 206.91 - 800.03 + 290.16)

W_net = 0.5434 KJ

C) The thermal efficiency is given by the formula ;

η_th = W_net/Q_in

η_th = 0.5434/(m(u2 - u1))

η_th = 0.5434/(0.003(897.91 - 206.91))

η_th = 0.262

A certain process requires 2.0 cfs of water to be delivered at a pressure of 30 psi. This water comes from a large-diameter supply main in which the pressure remains at 60 psi. If the galvanized iron pipe connecting the two locations is 200 ft long and contains six threaded 90o elbows, determine the pipe diameter. Elevation differences are negligible.

Answers

Answer:

determine the pipe diameter.  = 0.41ft

Explanation:

check the attached file for answer explanation

Answer: you need to do it on your own first

Explanation:

A pump is used to deliver water from a lake to an elevated storage tank. The pipe network consists of 1,800 ft (equivalent length) of 8-in. pipe (Hazen-Williams roughness coefficient = 120). Ignore minor losses. The pump discharge rate is 600 gpm. The friction loss (ft) is most nearly Group of answer choicesA. 15
B. 33
C. 106
D. 135

Answers

Answer:

h_f = 15 ft, so option A is correct

Explanation:

The formula for head loss is given by;

h_f = [10.44•L•Q^(1.85)]/(C^(1.85))•D^(4.8655))

Where;

h_f is head loss due to friction in ft

L is length of pipe in ft

Q is flow rate of water in gpm

C is hazen Williams constant

D is diameter of pipe in inches

We are given;

L = 1,800 ft

Q = 600 gpm

C = 120

D = 8 inches

So, plugging in these values into the equation, we have;

h_f = [10.44*1800*600^(1.85)]/(120^(1.85))*8^(4.8655))

h_f = 14.896 ft.

So, h_f is approximately 15 ft

Water flows at a rate of 0.040 m3 /s in a horizontal pipe whose diameter is reduced from 15 cm to 8 cm by a reducer. If the pressure at the centerline is measured to be 480 kPa and 440 kPa before and after the reducer, respectively, determine the irreversible head loss in the reducer. Take the kinetic energy correction factors to be 1.05. Answer: 0.963 m

Answers

Answer:

hL = 0.9627 m

Explanation:

Given

Q = 0.040 m³/s (constant value)

D₁ = 15 cm = 0.15 m  ⇒  R₁ = D₁/2 = 0.15 m/2 = 0.075 m

D₂ = 8 cm = 0.08 m  ⇒  R₂ = D₂/2 = 0.08 m/2 = 0.04 m

P₁ = 480 kPa = 480*10³Pa

P₂ = 440 kPa = 440*10³Pa

α = 1.05

ρ = 1000 Kg/m³

g = 9.81 m/s²

h₁ = h₂

hL = ?  (the irreversible head loss in the reducer)

Using the formula Q = v*A   ⇒  v = Q/A

we can find the velocities v₁ and v₂ as follows

v₁ = Q/A₁ = Q/(π*R₁²) = (0.040 m³/s)/(π*(0.075 m)²) = 2.2635 m/s

v₂ = Q/A₂ = Q/(π*R₂²) = (0.040 m³/s)/(π*(0.04 m)²) = 7.9577 m/s

Then we apply the Bernoulli law (for an incompressible flow)

(P₂/(ρ*g)) + (α*v₂²/(2*g)) + h₂ = (P₁/(ρ*g)) + (α*v₁²/(2*g)) + h₁ - hL

Since h₁ = h₂ we obtain

(P₂/(ρ*g)) + (α*v₂²/(2*g)) = (P₁/(ρ*g)) + (α*v₁²/(2*g)) - hL

⇒  hL = ((P₁-P₂)/(ρ*g)) + (α/(2*g))*(v₁²-v₂²)

⇒  hL = ((480*10³Pa-440*10³Pa)/(1000 Kg/m³*9.81 m/s²)) + (1.05/(2*9.81 m/s²))*((2.2635 m/s)²-(7.9577 m/s)²)

⇒  hL = 0.9627 m

I have a signal that is experiencing 60 Hz line noise from a nearby piece of equipment, and I want to make sure that the noise is filtered out. I expect that there might be useful information at frequencies higher and lower than 60 Hz. Which would be the best type of filter for this purpose?

a. BandStop filter
b. Low-pass filter
c. Bandpass filter
d. High-pass filter

Answers

Answer:

a. BandStop filter

Explanation:

A band-stop filter or band-rejection filter is a filter that eliminates at its output all the signals that have a frequency between a lower cutoff frequency and a higher cutoff frequency. They can be implemented in various ways.  One of them is to implement a notch filter, which is characterized by rejecting a certain frequency that is interfering with a circuit. The transfer function of this filter is given by:

[tex]H(s)=\frac{s^2+\omega_o^2}{s^2+\omega_cs+\omega_o^2} \\\\Where:\\\\\omega_o=Central\hspace{3} rejected\hspace{3} frequency\\\omega_c=Width\hspace{3} of\hspace{3} the\hspace{3} rejected\hspace{3} band[/tex]

I attached you a graph in which you can see how the filter works.

A system executes a power cycle while receiving 1000 kJ by heat transfer at a temperature of 500 K and discharging 700 kJ by heat transfer at a temperature of 300 K. There are no other heat transfers. Determine the cycle efficiency. Use the Clausius Inequality to determine , in kJ/K. Determine if this cycle is internally reversible, irreversible, or impossible.

Answers

Answer:

[tex]\eta_{th} = 30\,\%[/tex], [tex]\eta_{th,max} = 40\,\%[/tex], [tex]\Delta S = \frac{1}{3}\,\frac{kJ}{K}[/tex], The cycle is irreversible.

Explanation:

The real cycle efficiency is:

[tex]\eta_{th} = \frac{1000\,kJ-700\,kJ}{1000\,kJ} \times 100\,\%[/tex]

[tex]\eta_{th} = 30\,\%[/tex]

The theoretical cycle efficiency is:

[tex]\eta_{th,max} = \frac{500\,K-300\,K}{500\,K} \times 100\,\%[/tex]

[tex]\eta_{th,max} = 40\,\%[/tex]

The reversible and real versions of the power cycle are described by the Clausius Inequalty:

Reversible Unit

[tex]\frac{1000\,kJ - 600kJ}{300\,K}= 0[/tex]

Real Unit

[tex]\Delta S = \frac{1000\,kJ-600\,kJ}{300\,K} -\frac{1000\,kJ-700\,kJ}{300\,K}[/tex]

[tex]\Delta S = \frac{1}{3}\,\frac{kJ}{K}[/tex]

The cycle is irreversible.

The cycle efficiency using clausius inequality is;

σ_cycle = 0.333 kJ/kg and is internally irreversible

For the cycle, we know that efficiency is;

η = 1 - Q_c/Q_h

Thus;

Q_c = (1 - η)Q_h

Now, the cycle efficiency is derived from the integral;

σ_cycle = -∫(dQ/dt)ₐ

Thus; σ_cycle = -[(Q_h/T_h) - (Q_c/T_c)]

We are given;

Q_h = 1000 kJ

T_h = 500 k

T_c = 300 k

Q_c = 700 kJ

Thus;

σ_cycle = -[(1000/500) - (700/300)]

σ_cycle = -(2 - 2.333)

σ_cycle = 0.333 kJ/kg

Since σ_cycle > 0, then the cycle is internally irreversible

Read more about cycle efficiency at; https://brainly.com/question/16014998

When your complex reaction time is compromised by alcohol, an impaired person's ability to respond to emergency or unanticipated situations is greatly______.

Answers

Answer:

decreased

Explanation:

when impaired you react slower then you would sober.

Final answer:

Alcohol adversely affects the complex reaction time, considerably decreasing the individual’s ability to respond swiftly and adequately in emergencies or unexpected situations. This impairment is attributed to alcohol's impact on the brain causing slow information processing, poor motor control, and a decrease in focus.

Explanation:

When a person's complex reaction time is compromised by alcohol, their ability to respond to unexpected situations or emergencies is greatly diminished. Alcohol's impact on the brain leads to slower processing of information, reduced concentration, and poorer motor control. As a result, they may not react as quickly or efficiently as they would if they were sober to changes in their environment. For example, if a situation arises that requires quick decision-making, such as stopping abruptly while driving to avoid a pedestrian, an intoxicated individual may not respond in time, leading to catastrophic outcomes.

Learn more about Alcohol impact on reaction time here:

https://brainly.com/question/1002220

#SPJ2

Number pattern Write a recursive method called print Pattern() to output the following number pattern. Given a positive integer as input (Ex: 12), subtract another positive integer (Ex: 3) continually until 0 or a negative value is reached, and then continually add the second integer until the first integer is again reached.

Answers

Answer:

See explaination

Explanation:

Code;

import java.util.Scanner;

public class NumberPattern {

public static int x, count;

public static void printNumPattern(int num1, int num2) {

if (num1 > 0 && x == 0) {

System.out.print(num1 + " ");

count++;

printNumPattern(num1 - num2, num2);

} else {

x = 1;

if (count >= 0) {

System.out.print(num1 + " ");

count--;

if (count < 0) {

System.exit(0);

}

printNumPattern(num1 + num2, num2);

}

}

}

public static void main(String[] args) {

Scanner scnr = new Scanner(System.in);

int num1;

int num2;

num1 = scnr.nextInt();

num2 = scnr.nextInt();

printNumPattern(num1, num2);

}

}

See attachment for sample output

A recursive method in Python to output the following number pattern:

def printPattern(n, m):

 # Base case: if n is 0 or negative, return

 if n <= 0:

   return

 # Print the current number

 print(n)

 # Recursively call the function with n subtracted by m

 printPattern(n - m, m)

 # Recursively call the function with n added by m

 printPattern(n + m, m)

# Example usage:

printPattern(12, 3)

Output:

12

9

12

15

12

...

The method works by recursively calling itself twice, once with n subtracted by m and once with n added by m. This process continues until n reaches 0 or a negative value. At that point, the base case is reached and the function returns.

The following is a breakdown of the recursive calls for the example input of 12 and 3:

printPattern(12, 3)

 printPattern(9, 3)

   printPattern(6, 3)

     printPattern(3, 3)

       printPattern(0, 3)

         # Base case reached, return

       printPattern(3, 3)

     printPattern(6, 3)

   printPattern(9, 3)

 printPattern(15, 3)

   printPattern(12, 3)

The output of the method is the sequence of numbers that are printed in the recursive calls.

For such more question on Python

https://brainly.com/question/29563545

#SPJ3

Consider a drainage basin having 60% soil group A and 40% soil group B. Five years ago the land use pattern in the basin was ½ wooded area with poor cover and ½ cultivated land (row crops/contoured and terraces) with good conservation treatment. Now the land use has been changed to 1/3 wooded area with poor cover, 1/3 cultivated land (row crops/contoured and terraces) with good conservation treatment, and 1/3 commercial and business area.

(a) Estimate the increased runoff volume during the dormant season due to the land use change over the past 5-year period for a storm of 35 cm total depth under the dry antecedent moisture condition (AMC I). This storm depth corresponds to a duration of 6-hr and 100-year return period. The total 5-day antecedent rainfall amount is 30 mm. (Note: 1 in = 25.4 mm.)
(b) Under the present watershed land use pattern, find the effective rainfall hyetograph (in cm/hr) for the following storm event using SCS method under the dry antecedent moisture condition (AMC I).

Answers

Answer:

Please see the attached file for the complete answer.

Explanation:

Water containing a solute is flowing through a 1cm diameter tube, which is 50 cm in length, at an average velocity of 1 cm/s. The temperature of water is 37 C. The walls of the tube are coated with an enzyme that makes the solute disappear instantly. The solute enters the tube at a concentration of 0.1 M and the solute has a MW of 300 g/mol. Estimate the fraction of the solute that leaves the tube. Assume that the viscosity and density of water at these conditions are 0.76 cP and 1g/cm^3, respectively.

Answers

Answer:

Explanation:

See the attachment for a step by step solution to the question.

The diffusion of a molecule in a tissue is studied by measuring the uptake of labeled protein into the tissue of thickness L =8 um. Initially, there is no labeled protein in the tissue. At t=0, the tissue is placed in a solution with a molecular concentration of C1=9.4 uM, so the surface concentration at x=0 is maintained at C1. Assume the tissue can be treated as a semi-infinite medium. Surface area of the tissue is A = 4.2 cm2. Calculate the flux into the tissue at x=0 and t=5 s.Please give your answer with a unit of umol/cm2 s. Assuming the diffusion coefficient is known of D=1*10-9 cm2/s

Answers

Answer:

The flux into the tissue at x=0 and t=5 s is 0.4476 uM/cm²s

Explanation:

Flux = [tex]\frac{Quantity}{Area * Time}[/tex]

given:

Area = 4.2 cm²

Time = 5 sec

Quantity ( concentration) = 9.4 uM

∴ Flux = Quantity / (Area × Time)

Flux = 9.4 uM / (4.2 cm² × 5 s)

Flux = 9.4 uM / 21 cm²s

Flux = 0.4476 uM/cm²s

Five Kilograms of continuous boron fibers are introduced in a unidirectional orientation into of an 8kg aluminum matrix. Calculate:

a. the density of the composite.
b. the modulus of elasticity parallel to the fibers.
c. the modulus of elasticity perpendicular to the fibers.

Answers

Answer:

Explanation:

Given that,

Mass of boron fiber in unidirectional orientation

Mb = 5kg = 5000g

Mass of aluminum fiber in unidirectional orientation

Ma = 8kg = 8000g

A. Density of the composite

Applying rule of mixing

ρc = 1•ρ1 + 2•ρ2

Where

ρc = density of composite

1 = Volume fraction of Boron

ρ1 = density composite of Boron

2 = Volume fraction of Aluminum

ρ2 = density composite of Aluminum

ρ1 = 2.36 g/cm³ constant

ρ2 = 2.7 g/cm³ constant

To Calculate fractional volume of Boron

1 = Vb / ( Vb + Va)

Vb = Volume of boron

Va = Volume of aluminium

Also

To Calculate fraction volume of aluminum

2= Va / ( Vb + Va)

So, we need to get Va and Vb

From density formula

density = mass / Volume

ρ1 = Mb / Vb

Vb = Mb / ρ1

Vb = 5000 / 2.36

Vb = 2118.64 cm³

Also ρ2 = Ma / Va

Va = Ma / ρ2

Va = 8000 / 2.7

Va = 2962.96 cm³

So,

1 = Vb / ( Vb + Va)

1 = 2118.64 / ( 2118.64 + 2962.96)

1 = 0.417

Also,

2= Va / ( Vb + Va)

2 = 2962.96 / ( 2118.64 + 2962.96)

2 = 0.583

Then, we have all the data needed

ρc = 1•ρ1 + 2•ρ2

ρc = 0.417 × 2.36 + 0.583 × 2.7

ρc = 2.56 g/cm³

The density of the composite is 2.56g/cm³

B. Modulus of elasticity parallel to the fibers

Modulus of elasticity is defined at the ratio of shear stress to shear strain

The relation for modulus of elasticity is given as

Ec = = 1•Eb+ 2•Ea

Ea = Elasticity of aluminium

Eb = Elasticity of Boron

Ec = Modulus of elasticity parallel to the fiber

Where modulus of elastic of aluminum is

Ea = 69 × 10³ MPa

Modulus of elastic of boron is

Eb = 450 × 10³ Mpa

Then,

Ec = = 1•Eb+ 2•Ea

Ec = 0.417 × 450 × 10³ + 0.583 × 69 × 10³

Ec = 227.877 × 10³ MPa

Ec ≈ 228 × 10³ MPa

The Modulus of elasticity parallel to the fiber is 227.877 × 10³MPa

OR Ec = 227.877 GPa

Ec ≈ 228GPa

C. modulus of elasticity perpendicular to the fibers?

The relation of modulus of elasticity perpendicular to the fibers is

1 / Ec = 1 / Eb+ 2 / Ea

1 / Ec = 0.417 / 450 × 10³ + 0.583 / 69 × 10³

1 / Ec = 9.267 × 10^-7 + 8.449 ×10^-6

1 / Ec = 9.376 × 10^-6

Taking reciprocal

Ec = 106.66 × 10^3 Mpa

Ec ≈ 107 × 10^3 MPa

Note that the unit of Modulus has been in MPa,

16.44 Lab 13D: Student Scores with Files and Functions Overview Create a program that reads from multiple input files and calls a user-defined function. Objectives Gain familiarity with CSV files Perform calculations with data from CSV files Create a user-defined function Read from multiple files in the same program

Answers

Answer:

See Explaination

Explanation:

# copy the function you have this is just for my convenniece

def finalGrade(scoresList):

weights = [0.05, 0.05, 0.40, 0.50]

grade = 0

for i in range(len(scoresList)):

grade += float(scoresList[i]) * weights[i]

return grade

import csv

def main():

with open('something.csv', newline='') as csvfile:

spamreader = csv.reader(csvfile, delimiter=',', quotechar='|')

file = open('something.txt')

for row in spamreader:

student = file.readline().strip()

scores = row

print(student, finalGrade(scores))

if __name__ == "__main__":

main()

Air enters a compressor operating at steady state at 1.05 bar, 300 K, with a volumetric flow rate of 39 m3/min and exits at 12 bar, 400 K. Heat transfer occurs at a rate of 6.5 kW from the compressor to its surroundings. Assuming the ideal gas model for air and neglecting kinetic and potential energy effects, determine the power input, in kW.

Answers

Answer:

The power input, in kW is -86.396 kW

Explanation:

Given;

initial pressure, P₁ = 1.05 bar

final pressure, P₂ = 12 bar

initial temperature, T₁ = 300 K

final temperature, T₂ = 400 K

Heat transfer, Q = 6.5 kW

volumetric flow rate, V = 39 m³/min = 0.65 m³/s

mass of air, m = 28.97 kg/mol

gas constant, R = 8.314 kJ/mol.k

R' = R/m

R' = 8.314 /28.97 = 0.28699 kJ/kg.K

Step 1:

Determine the specific volume:

p₁v₁ = RT₁

[tex]v_1 = \frac{R'T_1}{p_1} = \frac{(0.28699.\frac{kJ}{kg.K} )(300 k)}{(1.05 bar *\ \frac{10^5 N/m^2}{1 bar} *\frac{1kJ}{1000N.m} )} \\\\v_1 = 0.81997 \ m^3/kg[/tex]

Step 2:

determine the mass flow rate; m' = V / v₁

mass flow rate, m' = 0.65 / 0.81997

mass flow rate, m' = 0.7927 kg/s

Step 3:

using steam table, we determine enthalpy change;

h₁ at T₁ = 300.19 kJ /kg

h₂ at T₂ = 400.98 kJ/kg

Δh = h₂ - h₁

Δh = 400.98 - 300.19

Δh = 100.79 kJ/kg

step 4:

determine work input;

W = Q - mΔh

Where;

Q is heat transfer = - 6.5 kW, because heat is lost to surrounding

W = (-6.5) - (0.7927 x 100.79)

W = -6.5 -79.896

W = -86.396 kW

Therefore, the power input, in kW is -86.396 kW

Consider an aluminum step shaft. The area of section AB and BC as well as CD are 0.1 inch2 , 0.15 inch 2 and 0.20 inch2. The length of section AB, BC and CD are 10 inch, 12 inch and 16 inch. A force F=1000 lbf is applied to B. The initial gap between D and rigid wall is 0.002. Using analytical approach, determine the wall reactions, the internal forces in members, and the displacement of B and C. Find the strain in AB, BC and CD.

Answers

Answer:

Explanation:

Find attach the solution

- Consider a 2024-T4 aluminum material with ultimate tensile strength of 70 ksi. In a given application, a component of this material is to experience ‘released tension’ stress cycling between minimum and maximum stress level of 0 and σmax ksi. As an engineer, you want to have 99.9% chance that the component does not fail before 1,000,000 cycles. What should be the value of σmax?

Answers

To have a 99.9% chance that the component does not fail before 1,000,000 cycles, the maximum stress level (σmax) should be set to 17.15 ksi or lower.

Given:

- Material: 2024-T4 aluminum

- Ultimate tensile strength: 70 ksi

- Minimum stress level: 0 ksi

- Desired reliability: 99.9% for 1,000,000 cycles

Step 1: Determine the endurance limit (σe) for the material.

For aluminum alloys, the endurance limit is typically taken as the stress level at which the S-N curve (stress vs. number of cycles to failure) becomes horizontal.

A common approximation for the endurance limit of aluminum alloys is:

σe ≈ 0.35 × Ultimate tensile strength

σe ≈ 0.35 × 70 ksi = 24.5 ksi

Step 2: Adjust the endurance limit for the desired reliability.

The endurance limit is typically determined for a reliability of 50%. To achieve a higher reliability, we need to apply a correction factor.

For a reliability of 99.9%, the correction factor is approximately 0.7.

Adjusted endurance limit = σe × 0.7 = 24.5 ksi × 0.7 = 17.15 ksi

Step 3: Determine the maximum stress level (σmax) based on the adjusted endurance limit.

For a fully reversed stress cycle (minimum stress = 0), the maximum stress level should not exceed the adjusted endurance limit.

σmax ≤ 17.15 ksi

Therefore, to have a 99.9% chance that the component does not fail before 1,000,000 cycles, the maximum stress level (σmax) should be set to 17.15 ksi or lower.

Other Questions
What are the quilts of Gee's Bend,a community in Alabama, acclaimed for? Evaluate the variable expression for x = 5, and enter your answer in the boxbelow.6.(x- 9) - 5 How states choose judges for trial courts and for apellate courts??? The LPS, or endotoxin, of Neisseria gonorrhoeae is slightly different from most Gram-negative organisms because of the absence of repeating O-antigens; hence, it is called LOS instead of LPS. How could LOS be a major virulence factor for Neisseria gonorrhoeae Which term best describes the Southern economy before the Civil War?A. High-techB. AgriculturalC. Industrial Please help!!! I NEED HELP!A triangular pyramid has a triangular base with a height of 4 inches and a base length of 7 inches. The height of the pyramid is 6 inches. What is the volume of the pyramid in cubic inches? (Recall the formula V = one-third B h.)A. 14B. 56C. 28D. 42 Suppose you have been hired as a management consultant by a major oil company to help it optimally price gasoline at its service stations. Your client wants to know what will happen to gasoline demand if it increases gasoline prices by one cent higher than its nearest competitors. One of the members of your consulting team, Debbie, shares that one time in college she stopped buying gasoline from a service station that was one cent more expensive.Based on this story, should you conclude that demand will fall to zero if the client raises gas prices by one cent? Calcium chloride (aq) reacts with sodium carbonate (aq) to from solid calcium carbonate and aqueous sodium chloride. Determine the volume of a 2.00 M Calcium chloride solution would be needed to exactly react with 0.0650 L of 1.50 M Na2CO3. (Use BCA!) The wars carried out by the aztec empire were linked to the Solve for x if 2(5x+2)2=48 Match each term with the correct definitionPropagandaA process by which the governmentcontrols information in the mediaIndoctrinateAnti-Jewish discrimination or prejudice:hatred towards JewsAnti-SemitismA reward to encourage someone tobehave in a particular wayIncentiveOfficial communications created to winsupport for a causeCensorshipTo teach others to completely acceptthe beliefs of a particular groupIntro i dont know the answer to this. ive seen multiple different The volume of an automobile air bag was 66.8 L when inflated at 25 C with 77.8 g of nitrogen gas. What was the pressure in the bag in kPa A force of 120.0 N is applied to a 3.00 kg block. What is the average acceleration of the block? what is the connection between a circadian rhythm and the biological clock Joel biked 9 miles east and then 12 miles north. If hebiked back to his starting point using the most directroute, how many miles would he ride all together? Two of the sides of a right triangle are 8 and 6 units long. How long is the third side? Find all possible answers. 1. A four-lane freeway (two lanes in each direction) is located on rolling terrain and has 12-ft lanes, no lateral obstructions within 6 ft of the pavement edges, and there are two ramps within three miles upstream of the segment midpoint and three ramps within three miles downstream of the segment midpoint. A weekday directional peak-hour volume of 1800 vehicles (familiar users) is observed, with 700 arriving in the most congested 15-min period. If a LOS no worse than C is desired, determine the maximum number of heavy vehicles that can be present in the peak-hour traffic stream. "3.ERA Companys controller accidentally erased the 3/1/20 balance for the Accounts Receivable account. However, she can see that the 3/31/20 Accounts Receivable balance is $500,000, the company provided services worth $1,500,000 on account during March 2020, and collected $1,800,000 cash related to accounts receivable during March 2020. What was the 3/1/20 Accounts Receivable balance?" According to the excerpt, why did the words of the child so deeply affect Augustine and inspire him? A. He remembered them from his own childhood. B. He had heard them so many times before from next door. C. He thought the words were unusual for a child to be saying. D. He thought it was odd because the people next door did not have any children.