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
Sludge wasting rate (Qw) from the solids residence time (Thetac = mcrt) calculation. Given the following information from the previous problem. The total design flow is 15,000 m3/day. Theoretical hydraulic detention time (Theta) = 8 hours. The NPDES limit is 25 mg/L BOD/30 mg/L TSS.
Assume that the waste strength is 170 mg/L BOD after primary clarification.
XA=MLSS = 2200 mg/L,
Xw = Xu = XR = 6,600 mg/L,
qc = 8 days.
Make sure you account for the solids in the discharge.
What volume of sludge (Qw=m3/day) is wasted each day from the secondary clarifiers?
Answer:
The volume of sludge wasted each day from the secondary classifiers is Qw = 208.33 m^3 / day
Explanation:
Check the file attached for a complete solution.
The volume of the aeration tank was first calculated, V = 5000 m^3 / day.
The value of V was consequently substituted into the formula for the wasted sludge flow. The value of the wasted sludge flow was calculated to be Qw = 208.33 m^3 / day.
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.
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
is sampled at a rate of to produce the sampled vector and then quantized. Assume, as usual, the minimum voltage of the dynamic range is represented by all zeros and the maximum value with all ones. The numbers should increase in binary order from bottom to top. Find the bit combination used to store each sample when rounded to the nearest integer between and (clipping may occur). Note: A partially-correct answer will not be recognized. You must answer all three correctly on the same
Answer:
d[0] = 11111111
d[1] = 11011101
d[2] = 1111011
Explanation:
Assume that the number of bits is 8. The voltage range input is -8 to 7 volts. The range is thus 15V, and the resolution is 15/2^8 = 0.0586 volts. We will first add +8 to the input to convert it to a 0-15v signal. Then find the equivalent bit representation. For 7.8 volts, the binary signal will be all 1's, since the max input voltage for the ADC is 7 volts. For 4.95, we have 4.95+8 = 12.95 volts. Thus, N = 12.95/0.0586 = 221. The binary representation is 11011101. For -0.8, we have -0.8 + 8 = 7.2. Thus, N = 7.2/0.0586 = 123. The binary representation is 1111011.
Thus,
d[0] = 11111111
d[1] = 11011101
d[2] = 1111011
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;
}
}
}
Problem Statement: Air flows at a rate of 0.1 kg/s through a device as shown below. The pressure and temperature of the air at location 1 are 0.2 MPa and 800 K and at location 2 the pressure and temperature are 0.75 MPa and 700 K. The surroundings are at 300 K and the surface temperature of the device is 1000 K. Determine the rate that the device performs work on its surroundings if the rate of heat transfer from the surface of the device to the environment is 1 kW. Justify your answer. Note that the flow direction for the air is not specified so you need to consider all possibilities for the direction of the airflow. Assume that the air is an ideal gas, that R
Answer:
The answer is "+9.05 kw"
Explanation:
In the given question some information is missing which can be given in the following attachment.
The solution to this question can be defined as follows:
let assume that flow is from 1 to 2 then
Q= 1kw
m=0.1 kg/s
From the steady flow energy equation is:
[tex]m\{n_1+ \frac{v^2_1}{z}+ gz_1 \}+Q= m \{h_2+ \frac{v^2_2}{2}+ gz_2\}+w\\\\\ change \ energy\\\\0.1[1.005 \times 800]-1= 0.01[1.005\times 700]+w\\\\w= +9.05 \ kw\\\\[/tex]
If the sign of the work performed is positive, it means the work is done on the surrounding so, that the expected direction of the flow is right.
what is the Economic