Create an abstract class DiscountPolicy. It should have a single abstract method computeDiscount that will return the discount for the purchase of a given number of a single item. The method has two parameters, count and itemCost. 2. Derive a class BulkDiscount from DiscountPolicy, as described in the previous exercise. It should have a constructor that has two parameters, minimum and percent. It should define the method computeDiscount so that if the quantity purchased of an item is more than minimum, the discount is percent percent. 3. Derive a class BuyNItemsGetOneFree from DiscountPolicy, as described in Exercise 1. The class should have a constructor that has a single parameter n. In addition, the class should define the method computeDiscount so that every nth item is free. For example, the following table gives the discount for the purchase of various counts of an item that costs $10, when n is 3: count 1 2 3 4 5 6 7 Discount 0 0 10 10 10 20 20

4. Derive a class CombinedDiscount from DiscountPolicy, as described in Exercise 1. It should have a constructor that has two parameters of type DiscountPolicy. It should define the method computeDiscount to return the maximum value returned by computeDiscount for each of its two private discount policies. The two discount policies are described in Exercises 2 and 3. 5. Define DiscountPolicy as an interface instead of the abstract class described in Exercise 1.

Answers

Answer 1

Answer:

Java Code was used to define classes in the abstract discount policy,The bulk discount, The buy items get one free and the combined discount

Explanation:

Solution

Code:

Main.java

public class Main {

public static void main(String[] args) {

  BulkDiscount bd=new BulkDiscount(10,5);

BuyNItemsGetOneFree bnd=new BuyNItemsGetOneFree(5);

CombinedDiscount cd=new CombinedDiscount(bd,bnd);

System.out.println("Bulk Discount :"+bd.computeDiscount(20, 20));

  System.out.println("Nth item discount :"+bnd.computeDiscount(20, 20));

 System.out.println("Combined discount :"+cd.computeDiscount(20, 20));    

  }

}

discountPolicy.java

public abstract class DiscountPolicy

{    

public abstract double computeDiscount(int count, double itemCost);

}    

BulkDiscount.java  

public class BulkDiscount extends DiscountPolicy

{    

private double percent;

private double minimum;

public BulkDiscount(int minimum, double percent)

{

this.minimum = minimum;

this.percent = percent;

}

at Override

public double computeDiscount(int count, double itemCost)

{

if (count >= minimum)

{

return (percent/100)*(count*itemCost); //discount is total price * percentage discount

}

return 0;

}

}

BuyNItemsGetOneFree.java

public class BuyNItemsGetOneFree extends DiscountPolicy

{

private int itemNumberForFree;

public BuyNItemsGetOneFree(int n)

{

  itemNumberForFree = n;

}

at Override

public double computeDiscount(int count, double itemCost)

{

if(count > itemNumberForFree)

return (count/itemNumberForFree)*itemCost;

else

  return 0;

}

}

CombinedDiscount.java

public class CombinedDiscount extends DiscountPolicy

{

private DiscountPolicy first, second;

public CombinedDiscount(DiscountPolicy firstDiscount, DiscountPolicy secondDiscount)

{

first = firstDiscount;

second = secondDiscount;

}

at Override

public double computeDiscount(int count, double itemCost)

{

double firstDiscount=first.computeDiscount(count, itemCost);

double secondDiscount=second.computeDiscount(count, itemCost);

if(firstDiscount>secondDiscount){

  return firstDiscount;

}else{

  return secondDiscount;

}

}  

}


Related Questions

(USCS units) A deep drawing operation is performed on a sheet-metal blank that is 1/8 in thick. The height of the cup = 3.8 in and its diameter = 5.0 in (both inside dimensions).

(a) Assuming the punch radius = 0, compute the starting diameter of the blank to complete the operation with no material left in the flange.

(b) Is the operation feasible (ignoring the fact that the punch radius is too small)?

Answers

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step solution of the given problem

A heat recovery device involves transferring energy from the hot flue gases passing through an annular region to pressurized water flowing through the inner tube of the annulus. The inner tube has inner and outer diameters of 24 and 30 mm and is connected by eight struts to an insulated outer tube of 60-mm diameter. Each strut is 3 mm thick and is integrally fabricated with the inner tube from carbon steel (k 50 W/m K). Consider conditions for which water at 300 K flows through the inner tube at 0.161 kg/s while flue gases at 800 K flow through the annulus, maintaining a convection coefficient of 100 W/m2 K on both the struts and the outer surface of the inner tube. What is the rate of heat transfer per unit length of tube from gas to the water?

Answers

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

a) The current that goes through a 100 mH inductor is given as
i(t) = 6 - 2e^-2t A t >= 0
Find the voltage v(t) across the inductor.
b) The voltage v(t) = 5sin(5t) V is applied across the terminals of a 200 mH inductor. The initial current through the inductor is i(0) = -10 A. Find the current i(t) through the inductor for t > 0.

Answers

Answer:

A) V(t) = 0.4e^-2t

B) i(t) = (25tsin5t+10) A for t>0

Explanation:

Formula for calculating voltage across an inductor is expressed as:

V = Ldi/dt

Given L = 100mH = 100×10^-3

If i(t) = 6 - 2e^-2t A t >= 0

di/dt = (-2)(-2)e^-2t

di/dt = 4e^-2t

If t ≥ 0

V(t) = 100×10^-3 × (4e^-2t)

V(t) = 0.1×4e^-2t

V(t) = 0.4e^-2t for t≥0

B) Applying the same formula as above

V = Ldi/dt

Vdt = Ldi

V/L dt = di

On integration

Vt/L = i + C

When t = 0, i = -10A

Substituting the values into the formula

V(0)/L = -10 + C

0 = -10+C

C = 10

To get the current i(t) through the inductor for t>0,

Since Vt/L = i + C

Given V(t) = 5sin5t Volts

L = 200mH = 200×10^-3H

C = 10

On substituting

(5sin5t)t/0.2 = i + 10

25tsin5t = i + 10

i(t) = (25tsin5t-10) A for t>0

A large truck drives down the highway at 10 m/s hauling a rectangular trailer that is 6 m long, 2 m wide, and 2 m tall. The trailer contains frozen food and is therefore temperature-controlled. Its external surface can be approximated to be a consistent 15°C, while the outside air is at 20°C. Assume the heat transfer on the front, back, and bottom of the trailer is negligible.

a) How much cooling power must be provided to maintain the temperature controlled trailer? (i.e. What is the total heat transfer rate from the air to the trailer)?b) What is the minimum local heat transfer coefficient on the surface of the trailer? Where does the minimum occur?c) What percentage of the total heat transfer is occuring over a laminar boundary layer?d) If the cooling system can only provide 5 KW of cooling, what is the fastest speed that this truck can drive while still adequately maintaining the temperature within the trailer?

Answers

Answer:

3w/m²k

Explanation:

Base on the scenario been described in the question, the solution to the given problem solve in the file attached below

Discuss the ethics of the circumstances that resulted in the Columbia shuttle disaster. Considering the predictions that were made years before the disaster, as well as the reliability of the Binomial distribution and its implications, what could or should the engineers associated with the program have done differently

Answers

Explanation:

This is not so much a mathematical issue as a case study, because the response will inevitably require us to test the special Columbic shuttle disaster scenario. I would suggest that you read this in detail and present the points accordingly. Here I give as many points as I think are relevant.

The failure of a space program is definitely a complex situation, more than a simple binomial distribution. It's definitely not as simple as repeating the flip of a coin. There are several coherent factors and situations that govern the overall coordination and execution of such an event. The problem is, those who are running a project like this are still making a trade off,It is never the case that they sealed the lid on any chance of failure between multiple parameters. You try to do something, but often, as is the case above, the potentially dangerous situation is impossible or uncontrollable. Since the root cause of failure, which is dried out tiles that can not withstand heat and water, it appears that owing to the constant use of the shuttle the head architects have not foreseen this.

An R-134a refrigeration system is operating with an evaporator pressure of 200 kPa. The refrigerant is 10% in vapor phase at the inlet of the evaporator. The enthalpy and temperature of the refrigerant at the exit of the compressor are 360 kJ/kg and 70 /C respectively. If this system (with the refrigerant flowing at 0.005 kg/s) is used to cool a 750 kg product (initial temperature = 80 /C and specific heat = 3,000 J/kg-K), what will be the temperature of the product after 6 hours?

Answers

Answer:

71.17°C

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

Two identical 3 in. major-diameter power screws (single-threaded) with modified square threads are used to raise and lower a 50-ton sluice gate of a dam. Quality of construction and maintenance (including lubrication) are good, resulting in an estimated friction coefficient of only 0.1 for the screw. Collar friction can be neglected, as ball thrust bearings are used. Assuming that, because of gate friction, each screw must provide a lifting force of 26 tons, what power is required to drive each screw when the gate is being raised at the rate of 3 ft/min

Answers

Answer:

Check the explanation

Explanation:

Kindly check the attached images below to see the step by step explanation to the question above.

3. A storage tank is connected to a pond (at atmospheric pressure!) by a length of 4" pipe and a gate valve. From previous operating experience, it has been found that when the tank is at a pressure of 3 atm the flow through the pipe is 35 m3/h when the gate valve is fully open. If the pressure in the tank increases to 5 atm, what will be the maximum discharge rate from the tank?

Answers

Answer:

V2= 21m³/h

Explanation:

According to Boyle's law, pressure and flow rate of gas can be calculated from the following equation:

P1V1=P2V2

3 × 35 = 5 × V2

V2= 21m³/h

Hot oil is to be cooled by water in a 1-shell-pass and 8-tube-passes heat exchanger. The tubes are thin-walled and are made of copper with an internal diameter of 1.4 cm. The length of each tube pass in the heat exchanger is 5 m, and the overall heat transfer coefficient is 310 W/m2.K. Water flows through the tubes at a rate of 0.2 kg/s, and the oil through the shell at a rate of 0.3 kg/is. The water and the oil enter at temperatures of 20 C and 150 C, respectively. Determine the rate of heat transfer in the heat exchanger and the outlet temperatures of the water and the oil.

Answers

Answer:

Rate of heat transfer is 66.8°C

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

Tech A says that when checking tire pressure, the tire should be " cold." Tech B says that the tires should be driven more than 3 miles before checking tire presure. Who is correct?

Answers

Answer: Technician A is correct.

Explanation:

Technician A is correct because temperature of a tire will affect its pressure reading.

Tires attract heat because of their dark colour and then motion on the road generates heat. A car owner or technician should know that tire pressure is most accurate when the tire is cold (especially when atmospheric temperature is cool too).

If the tires are driven three miles first, their temperature will be high (due to the rubbing of the tires on the surface of the road). This higher temperature will result in higher per square inch (psi) readings.

Temperature has a great influence on the tire pressure.

Even if the tire is driven up to or more than 3 miles, it should still be left to cool, before tire pressure is checked.

The tire manufacturer's rating should be the maximum possible tire pressure. If an abnormal reading is gotten, the gauge should be properly checked.

Find a negative feedback controller with at least two tunable gains that (1) results in zero steady state error when the input is a unit step (1/s). (and show why it works); (2) Gives a settling time of 4 seconds; (3) has 10% overshoot. Use the standard 2nd order approximation. Plot the step response of the system and compare the standard approximation with the plot.

Answers

Answer:

Gc(s) = [tex]\frac{0.1s + 0.28727}{s}[/tex]

Explanation:

comparing the standard approximation with the plot attached we can tune the PI gains so that the desired response is obtained. this is because the time requirement of the setting is met while the %OS requirement is not achieved instead a 12% OS is seen from the plot.

attached is the detailed solution and the plot in Matlab

Determine the drag on a small circular disk of 0.02-ft diameter moving 0.01 ft/s through oil with a specific gravity of 0.89 and a viscosity 10000 times that of water. The disk is oriented normal to the upstream velocity. By what percent is the drag reduced if the disk is oriented parallel to the flow?

Answers

Answer:

33.3%

Explanation:

Given that:

specific gravity (SG) = 0.89

Diameter (D) =  0.01 ft/s

Density of oil [tex]\rho= SG\rho _{h20} = 0.89 * 1.94=1.7266\frac{sl}{ft^3}[/tex]

Since the viscosity 10000 times that of water, The reynold number [tex]R_E=\frac{\rho VD}{\mu} =\frac{1.7266*0.01*0.01}{0.234}=7.38*10^{-4}[/tex]

Since RE < 1, the drag coefficient for normal flow is given as: [tex]C_{D1}=\frac{24.4}{R_E}= \frac{20.4}{7.38*10^{-4}}=2.76*10^4[/tex]

the drag coefficient for parallel flow is given as: [tex]C_{D2}=\frac{13.6}{R_E}= \frac{13.6}{7.38*10^{-4}}=1.84*10^4[/tex]

Percent reduced = [tex]\frac{D_1-D_2}{D_2} *100=\frac{2.76-1.84}{3.3}=33.3[/tex] = 33.3%

Water enters the tubes of a cold plate at 70°F with an average velocity of 40 ft/min and leaves at 105°F. The diameter of the tubes is 0.25 in. Assuming 14 percent of the heat generated is dissipated from the components to the surroundings by convection and radiation and the remaining 86 percent is removed by the cooling water, determine the amount of heat generated by the electronic devices mounted on the cold plate. The properties of water at room temperature are rho = 62.1 lbm/ft3 and cp = 1.00 Btu/lbm·°F.

Answers

Answer:

The total amount of heat generated;Q' = 2067 Btu/h

Explanation:

We are given;

Water entering temperature;T1 = 70°F

Water leaving temperature;T2 = 105°F

average velocity of water;V = 40 ft/min

Diameter of tube;D = 0.25 in = 0.25/12 ft = 0.02083 ft

Water density;ρ = 62.1 lbm/ft³

cp = 1.00 Btu/lbm·°F.

Now, the mass flow rate of the water is calculated from;

m' = ρAV

Where ρ is density, A is area and V is velocity

Area = πD²/4 = π*0.02083²/4 = 0.00034077555 ft²

m' = 62.1 * 0.00034077555 * 40

m' = 0.8465 lbm/min

Converting to lbm/hr = 0.8465 * 60 = 50.79 lbm/hr

From energy balance equation, we have;

E_in = E_out

So,

Q_in,w + m'h1 = m'h2

Q_in,w = m'h2 - m'h1

Q_in,w = m'(h2 - h1)

Now, m'(h2 - h1) can be written as;

m'cp(T2 - T1).

Thus ;

Q_in,w = m'cp(T2 - T1)

Plugging in the relevant values, we have;

Q_in,w = (50.79*1)(105 - 70)

Q_in,w = 1777.65 Btu/h

We are told that remaining 86 percent of heat generaged is removed by the cooling water. Thus;

The total amount of heat generated could be defined as;

Q' = Q_in,w/0.86

Q' = 1777.65/0.86

Q' = 2067 Btu/h

Have you ever had an ice cream headache that’s when a painful sensation resonates in your head after eating something cold usually ice cream on a hot day this pain is produced by the dilation of a nerve center in the roof of your mouth the nerve center is overreacting to the cold by trying to hit your brain ice cream headaches have turned many smiles to frowns identify the structure

Answers

Answer:

Cause and effect

Explanation:

pls mark brainliest

The  structure that makes or turned many smiles to frowns can be regarded as compare/contrast.

What is compare contrast?

The term compare/contrast  is a common terms. The act of comparing is known to be depicting the similarities, and contrasting is said to be showing differences that exist between two things.

Conclusively, from the above, we can see that it is a compare/contrast scenario as it talks about the effects of taking ice cream. It went from  smiles to frowns.

See option below

cause/effect

descriptive

compare/contrast

sequence/process

Learn more about compare/contrast from

https://brainly.com/question/9087023

An air conditioning unit is used to provide cooling during summer for a house. If the air conditioner provides 450 kW cooling by using 150 kW electrical power, determine the coefficient of performance (COP) of the air conditioner. The outside temperature and inside temperature are 40 and 20°C, respectively. Using the inequality of Clausius determine if the cycle is possible. Determine the COP of an air conditioner working based on the Carnot cycle between the same temperature difference. Compare the COPs of the Carnot and actual air conditioners and comment on them based on your answer for the previous part (the inequality of

Answers

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

If the symbol is on the top and bottom of the reference line, we call this __________ sides.
A. arrow
B. other
C. both

Answers

I think the correct answer is B

A six-lane divided multilane highway (three lanes in each direction) has a measured free-flow speed of 50 mi/h. It is on mountainous terrain with a traffic stream consisting of 7% large trucks and buses and 3% recreational vehicles. The driver population adjustment in 0.92. One direction of the highway currently operates at maximum LOS C conditions and it is known that the highway has PHF=0.90.
How many vehicles can be added to this highway before capacity is reached, assuming the proportion of vehicle types remain the same but the peak-hour factor increases to 0.95?
Process: (1) determine passenger car equivalent for trucks and buses; (2) determine passenger car equivalent for recreational vehicles; (3) calculate heavy vehicle factor; (4) determine 15-min passenger equivalent flow rate for current conditions; (5) determine 15-min passenger equivalent flow rate at full capacity; (6) calculate the volume for current and capacity conditions; (7) take the difference of the two volumes to determine how many vehicles were added

Answers

Answer:

The number of vehicles added to this highway before the capacity is reached is 1,511 vehicles.

Explanation:

see attached image

For what type of metal is high speed steel drill best suited?

Answers

ANSWER-
I believe it would be high speed steel

Answer:

high speed steel I believe

Two Electric field vectors E1 and E2 are perpendicular to each other; obtain its base
vectors.

Answers

Answer:

<E1, E2>.

Explanation:

So, in the question above we are given that the Two Electric field vectors E1 and E2 are perpendicular to each other. Thus, we are going to have the i and the j components for the two Electric Field that is E1 and E2 respectively. That is to say the addition we give us a resultant E which is an arbitrary vector;

E = |E| cos θi + |E| sin θj. -------------------(1).

Therefore, if we make use of the components division rule we will have something like what we have below;

x = |E2|/ |E| cos θ and y = |E1|/|E| sin θ

Therefore, we will now have;

E = x |E2| i + y |E1| j.

The base vectors is then Given as <E1, E2>.

(20 points) (Assessment of Outcome 1): A plant has two identical standby generator units for emergency use. In the area of the generators, the normal noise level registers 82 dBA on the sound-level meter with the generators turned off. When one generator switches on, the SLM needle jumps to 85.8 dBA. What will the dBA reading be when the second generator also turns on (so that both generators are on)

Answers

Answer:

It wouldn't get any louder then maybe 3db more

Explanation:

There's even a equation if you wanted to check this out but, if they are the same generator same model and all and made the same precise noise it wouldn't increase more then 3db.

Q10. Select the correct option for the following questions – (10 points, 2 each) a. After an edge dislocation has passed through some region of a crystal, the atomic arrangement of that region is disordered, Justify your answer - • True • False b. The process by which plastic deformation is produced by dislocation motion is called ____. • Interstitial Dislocation • Slip • Additional plain • Screw c. How does the theoretical strength of a solid material compare with its experimental strength? • Strength theoretical < Strength experimental • Strength theoretical = Strength experimental • Strength theoretical > Strength experimental d. The atoms surrounding a screw dislocation experience what kind(s) of strain(s)? • Shear strain • Compressive strain • Tensile strain e. For a particular crystal structure, the slip direction is that direction in the slip plane having the • highest linear density. • lowest linear density.

Answers

Answer:

a. True - Because the atomic arrangements of that region is disorderer because of the extra half plane atoms in between the line

b.Slip

C. Strength theoretical is greater than strength experimental

d. Shear stress

e. Highest linear density

The effective resistance of parallel resistors is always _____ than the lowest individual value.

a) more
b) less
c) no different than

Answers

Answer:

A

Explanation:

Answer:

the answer is a

Explanation:

it is a because thats what the answer is

The supplement file* that enclosed to this homework consists Time Versus Force data. The first column in the file stands for time (second) and the 2nd stands for force (Volt), respectively. This data were retrieved during an impact event. In this test, an impactor strikes to a sample. A force-ring sensor that attached to the impactor generates voltage during collision. A data acquisition card gathers the generated signals.

Answers

Answer:

A.) 1mv = 2000N

B.) Impulse = 60Ns

C.) Acceleration = 66.67 m/s^2

Velocity = 4 m/s

Displacement = 0.075 metre

Absorbed energy = 60 J

Explanation:

A.) Using a mathematical linear equation,

Y = MX + C

Where M = (2000 - 0)/( 898 - 0 )

M = 2000/898

M = 2.23

Let Y = 2000 and X = 898

2000 = 2.23(898) + C

2000 = 2000 + C

C = 0

We can therefore conclude that

1 mV = 2000N

B.) Impulse is the product of force and time.

Also, impulse = momentum

Given that

Mass M = 30kg

Velocity V = 2 m/s

Impulse = M × V = momentum

Impulse = 30 × 2 = 60 Ns

C.) Force = mass × acceleration

F = ma

Substitute force and mass into the formula

2000 = 30a

Make a the subject of formula

a = 2000/30

acceleration a = 66.67 m/s^2

Since impulse = 60 Ns

From Newton 2nd law,

Force = rate of change in momentum

Where

change in momentum = -MV - (- MU)

Impulse = -MV + MU

Where U = initial velocity

60 = -60 + MU

30U = 120

U = 120/30

U = 4 m/s

Force = 2000N

Impulse = Ft

Substitute force and impulse to get time

60 = 2000t

t = 60/2000

t = 0.03 second

Using third equation of motion

V^2 = U^2 + 2as

Where S = displacement

4^2 = 2^2 + 2 × 66.67S

16 = 4 + 133.4S

133.4S = 10

S = 10/133.4

S = 0.075 metre

D.) Energy = 1/2 mV^2

Energy = 0.5 × 30 × 2^2

Energy = 15 × 4 = 60J

The amusement park ride consists of a fixed support near O, the 6-m arm OA, which rotates about the pivot at O, and the compartment, which remains horizontal by means of a mechanism at A. At a certain instant, β=30ο, 2 0.75 rad/s, and 0.5 rad/s    , all clockwise. Determine the horizontal and vertical forces (F and N) exerted by the bench on the 75-kg rider at P. Compare your results with the static values of these forces. (Use x-y coordinate system and vector equations

Answers

Answer:

Check the explanation

Explanation:

Kindly check the attached image below to see the step by step explanation to the question above.

A deep drawing operation is performed on a sheet-metal blank that is 1/8 in thick. The height of the cup = 3.8 in and its diameter = 5.0 in (both inside dimensions). (a) Assuming the punch radius = 0, compute the starting diameter of the blank to complete the operation with no material left in the flange. (b) Is the operation feasible (ignoring the fact that the punch radius is too small)?

Answers

Answer:

a) Db = 10.05 in

b) The operation is not feasible

Explanation:

Let's begin by listing out the given variables:

Thickness = 1/8 in, Height (h) = 3.8 in,

Diameter (Dp) = 5 in ⇒ rp = Dp ÷ 2 = 5 ÷ 2 = 2.5 in

a) Area of cup = Area of wall + Area of base

A = 2πh(rp) + π(rp)²

A = (2π * 2.5 * 3.8) + (π * 2.5²)

A = 59.69 + 19.635 = 79.325 in²

A ≈ 79.33 in²

But π(rb)² = 79.33 ⇒ rb² = 79.33 ÷ π

rb² = 25.25

rb = 5.025 ⇒ Db = 2 * rb = 2 * 5.025 = 10.05 in

Db = 10.05 in

b) To calculate for feasibility, we use the formula, draw ratio equals diameter of the blank divided by diameter of the punch

Mathematically,

DR = Db ÷ Dp

DR = 10.05 ÷ 5 = 2.01

DR = 2.01

DR > 2 ⇒ the operation is not feasible

For an operation to be feasible, it must have a drawing ratio limit of 2 or lesser

A refrigerator uses refrigerant-134a as the working fluid and operates on the ideal vapor-compression refrigeration cycle except for the compression process. The refrigerant enters the evaporator at 120 kPa with a quality of 34 percent and leaves the compressor at 70°C. If the compressor consumes 450 W of power, determine (a) the mass flow rate of the refrigerant, (b) the condenser pressure, and (c) the COP of the refrigerator

Answers

Answer:

(a) 0.0064 kg/s

(b) 800 KPa

(c) 2.03

Explanation:

The ideal vapor compression cycle consists of following processes:

Process  1-2 Isentropic compression in a compressor

Process 2-3 Constant-pressure heat rejection in a condenser

Process 3-4 Throttling in an expansion device

Process 4-1 Constant-pressure heat absorption in an evaporator

For state 4 (while entering compressor):

x₄ = 34% = 0.34

P₄ = 120 KPa

from saturated table:

h₄ = hf + x hfg = 22.4 KJ/kg + (0.34)(214.52 KJ/kg)

h₄ = 95.34 KJ/kg

For State 1 (Entering Compressor):

h₁ = hg at 120 KPa

h₁ = 236.99 KJ/kg

s₁ = sg at 120 KPa = 0.94789 KJ/kg.k

For State 3 (Entering Expansion Valve)

Since 3 - 4 is an isenthalpic process.

Therefore,

h₃ = h₄ = 95.34 KJ/kg

Since this state lies at liquid side of saturation line, therefore, h₃ must be hf. Hence from saturation table we find the pressure by interpolation.

P₃ = 800 KPa

For State 2 (Leaving Compressor)

Since, process 2-3 is at constant pressure. Therefore,

P₂ = P₃ = 800 KPa

T₂ = 70°C (given)

Saturation temperature at 800 KPa is 31.31°C, which is less than T₂. Thus, this is super heated state. From super heated property table:

h₂ = 306.9 KJ/kg

(a)

Compressor Power = m(h₂ - h₁)

where,

m = mass flow rate of refrigerant.

m = Compressor Power/(h₂ - h₁)

m = (0.450 KJ/s)/(306.9 KJ/kg - 236.99 KJ/kg)

m = 0.0064 kg/s

(b)

Condenser Pressure = P₂ = P₃ = 800 KPa

(c)

The COP of ideal vapor compression cycle is given as:

COP = (h₁ - h₄)/(h₂ - h₁)

COP = (236.99 - 95.34)/(306.9 - 236.99)

COP = 2.03

The Ph diagram is attached

A machine operates using air flow under steady conditions with the following inlet and exit flow parameters. At the inlet, the pressure is 1.75 MPa at a temperature of 300 K. The inlet velocity is 25 m/s. The inlet diameter is 20 cm. At the outlet, the pressure is decreased to 55 kPa at a temperature of 500 K. The outlet velocity is 100 m/s. The elevation increase between the inlet and outlet is 100 m. The machine includes a turbine operating at 5 kW

Determine mass flow rate through the machine.

Answers

Answer:

Mass flow rate = 15.96kg/s

Explanation:

From

P1V1=mRT1

V1=RT1/P1

V1=0.0492m³/kg

M=A(U)/V1

Where u is the velocity

A=πd²/4

M=π(0.2²)/4×25/0.0492

M=15.96kg/s

Suppose you have a coworker who is a high Mach in your workplace. What could you do to counter the behavior of that individual? Put the high Mach individual in charge of a project by himself, and don’t let others work with him. Set up work projects for teams, rather than working one on one with the high Mach person. Work with the high Mach individual one on one, rather than in a team setting. Explain to the high Mach individual what is expected of him and ask him to agree to your terms.

Answers

Answer:

To counter the behavior of a high Mach individual in my workplace, I could put the individual in charge of a project by himself, and don't let others work with him.

Explanation:

A high Mach individual is one who exhibits a manipulative and self-centered behavior.   The personality trait is characterized by the use of manipulation and persuasion to achieve power and results.  But, such individuals are hard to be persuaded.  They do not function well in team settings and asking them to agree to terms is very difficult.  "The presence of Machiavellianism in an organisation has been positively correlated with counterproductive workplace behaviour and workplace deviance," according to wikipedia.com.

Mach is an abbreviation for Machiavellianism.  Machiavellianism is referred to in psychology as a personality trait which sees a person so focused on their own interests that they will manipulate, deceive, and exploit others to achieve their selfish goals.  It is one of the Dark Triad traits.  The others are narcissism and psychopathy, which are very dangerous behaviors.

A complex gear drawing done on a drawing sheet marked M-1 has many section views showing important interior details of the gear. One of the cutting-plane lines is marked at the ends with a callout in a circular bubble that says 7 above a line and M-3 below the line. To find this detail, you would

Answers

Answer:

The answer is "go to sheet M-3 and look for a detail labeled 7".

Explanation:

In the given question some information is missing, that is choices so, the correct choice can be described as follows:

In gear drawing, we use equipment that sorts a very important technical reference necessary for machinery design.  If a manufacturer wants a tool in the production of a new computer, two choices are available to design the new equipment itself.  To use standard features that have already been developed. In this gear drawing to find the details we go to sheet in M-3 and for the detailed labeled 7.

Consider a Carnot heat pump cycle executed in a steady-flow system in the saturated mixture region using R-134a flowing at a rate of 0.264 kg/s. The maximum absolute temperature in the cycle is 1.15 times the minimum absolute temperature, and the net power input to the cycle is 5 kW. If the refrigerant changes from saturated vapor to saturated liquid during the heat rejection process, determine the ratio of the maximum to minimum pressures in the cycle.

Answers

Answer:

7.15

Explanation:

Firstly, the COP of such heat pump must be measured that is,

              [tex]COP_{HP}=\frac{T_H}{T_H-T_L}[/tex]

Therefore, the temperature relationship, [tex]T_H=1.15\;T_L[/tex]

Then, we should apply the values in the COP.

                           [tex]=\frac{1.15\;T_L}{1.15-1}[/tex]

                           [tex]=7.67[/tex]

The number of heat rejected by the heat pump must then be calculated.

                   [tex]Q_H=COP_{HP}\times W_{nst}[/tex]

                          [tex]=7.67\times5=38.35[/tex]

We must then calculate the refrigerant mass flow rate.

                   [tex]m=0.264\;kg/s[/tex]

                   [tex]q_H=\frac{Q_H}{m}[/tex]

                         [tex]=\frac{38.35}{0.264}=145.27[/tex]

The [tex]h_g[/tex] value is 145.27 and therefore the hot reservoir temperature is 64° C.

The pressure at 64 ° C is thus 1849.36 kPa by interpolation.

And, the lowest reservoir temperature must be calculated.

                   [tex]T_L=\frac{T_H}{1.15}[/tex]

                        [tex]=\frac{64+273}{1.15}=293.04[/tex]

                        [tex]=19.89\°C[/tex]

the lowest reservoir temperature = 258.703  kpa                    

So, the pressure ratio should be = 7.15

Other Questions
For one full week, Cheng spent $12.50 per day on lunch. Write a multiplication expression using integers to show the overall impact or change to the total amount of money he had budgeted for food expenses. Then determine and explain that amount. Each gas sample has the same temperature and pressure. which sample occupies the greatest volume? each gas sample has the same temperature and pressure. which sample occupies the greatest volume? 40.0 gar 20.0 gne 20.0 gh2 4.0 ghe A part of who you are is influenced by your family heritage and culture. True or false ? The sets of numbers 7, 24, 25 and 9, 40, 41 are Pythagorean triples. Use what you know about the Pythagorean Theorem and explain or show why they are Pythagorean triples. Be sure to show your work for each set of triples! (5 points) i need an answer now please im being timeddd 6. Erin wants to have more than $150 before she goes shopping for gifts forthe holidays. Each time she babysits, she earns $7.50 per hour. Write andsolve an inequality to find h, the number of hours Erin needs to babysit inorder to meet her goal. Jack has 20 unit cubes. How many rectangular prisms with different sized bases can he build with the cubes? Kobes birthday is in July and it is always hot. This year, he wants to have popsicles as a cool snack. If Kobe expects 90 people to be at the party, does it make more sense to buy 100 pack of popsicles or multiple 16-packs? Choose the property of addition. ( 5 + 3 ) + 8 = 5 + ( 3 + ? ) A. associate property of additionB. Commutative property of addition C. Distributive property D. Identity property of addition In 1876, King Leopold II of the tiny European nation of Belgium hosted ameeting of explorers to encourage the exploration of Africa. Initially, heclaimed he was only interested in exploring Africa because he wanted to spreadthe benefits of Christianity, European civilization, and promote trade and newtechnology to help benefit Africans.8. Which motive of imperialism did King Leopold use to justifyexploration of Africa?(1) The White Mans Burden(2) Economic imperialism(3) Social Darwinism(4) NationalismAnswer: y-intercept question The approximate volume in milliliters, m, for a volume of f fluid ounces is equal to 29.57 times the value of f. Which table represents this relationship?A.Liquid VolumeFluid Ounces, fMilliliters, m29.57159.14288.713118.284 C.Liquid VolumeFluid Ounces, fMilliliters, m029.57159.14288.713118.28 B.Liquid VolumeFluid Ounces, fMilliliters, m29.57059.14188.712118.283 D.Liquid VolumeFluid Ounces, fMilliliters, m129.57259.14388.714118.28 HELP!!! BRAINLIEST GETS 20+ POINTS!!!!!Write 0.42525252525252525... as a fraction in simplest form Entre os principais meios para o estmulo ao consumo infantil, podemos destacar os a ) professores e pais. b ) amigos da escola. c ) livros escolares. d ) meios de comunicao. Please round 0.02623 to the nearest hundred.||||Thank you guys! Please answer soon! You observe a population of Island Sparrows for which the phenotype of crown color varies from yellow to white. You perform two experiments. Experiment 1 shows that this variation in the phenotype affects mating success, so that birds with yellow crown colors have more offspring. Experiment 2 shows that this variation in phenotype is determined fully by the diet of the birds and not genetics. Can crown color evolve via natural selection in this population of Island Sparrows? Find the area of the shape? g Tanning Company analyzes its receivables to estimate bad debt expense. The accounts receivable balance is $276,000 and credit sales are $1,000,000. An aging of accounts receivable shows that approximately 3% of the outstanding receivables will be uncollectible. What adjusting entry will Tanning Company make if the Allowance for Doubtful Accounts has a credit balance of $2,200 before adjustment? Read this Poem and answer the 7 questions please!!! Which of the following statements describes the mainpurpose of the final stanza of the poem (line 11-19)? (AKS 5)oA. As an adult, the narrator has no memory of hisbackyard when growing up.OB. The narrator realizes now that his parentsenjoyed their backyard in summer eveningswhen he was growing up.OCEven as an adult, the narrator still does not feelcomfortable in his backyard.OD. As an adult, the narrator has realized that thememories of his childhood backyard havebecome increasingly negative. commonlit the backyard then Swifty Corporation is indebted to Blossom under a $1020000, 11%, three-year note dated December 31, 2019. Because of Swifty's financial difficulties developing in 2021, Swifty owed accrued interest of $112200 on the note at December 31, 2021. Under a troubled debt restructuring, on December 31, 2021, Blossom agreed to settle the note and accrued interest for a tract of land having a fair value of $920000. Swifty's acquisition cost of the land is $723000. Ignoring income taxes, on its 2021 income statement Swifty should report as a result of the troubled debt restructuring_______.