Answer:
Its C. you may proceed, but only if the path is clear
Explanation:
I just gave Quiz and its correct
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
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. 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.
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;
}
}
}
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
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