Step-by-step answer:
The steps are much easier to follow when we know how many product it sells. The number does not really matter, because we need the profit per item.
Say, the company made and sold 100 items of the product.
The revenue = 100*5 = $500.
On the average, 2 out of 100 are defective and need to be replaced at a cost of $100 each, so
replacement cost = 2* 100 = 200
So net profit for 100 items = $500 -$200 = $300
Net profit for each item = $300/100 = $3.00
Remark: since the product is replaced, no refund is necessary, so revenue stays at $300.
Answer:
f(2n)-f(n)=log2
b.lg(lg2+lgn)-lglgn
c. f(2n)/f(n)=2
d.2nlg2+nlgn
e.f(2n)/(n)=4
f.f(2n)/f(n)=8
g. f(2n)/f(n)=2
Step-by-step explanation:
What is the effect in the time required to solve a prob- lem when you double the size of the input from n to 2n, assuming that the number of milliseconds the algorithm uses to solve the problem with input size n is each of these function? [Express your answer in the simplest form pos- sible, either as a ratio or a difference. Your answer may be a function of n or a constant.]
from a
f(n)=logn
f(2n)=lg(2n)
f(2n)-f(n)=log2n-logn
lo(2*n)=lg2+lgn-lgn
f(2n)-f(n)=lg2+lgn-lgn
f(2n)-f(n)=log2
2.f(n)=lglgn
F(2n)=lglg2n
f(2n)-f(n)=lglg2n-lglgn
lg2n=lg2+lgn
lg(lg2+lgn)-lglgn
3.f(n)=100n
f(2n)=100(2n)
f(2n)/f(n)=200n/100n
f(2n)/f(n)=2
the time will double
4.f(n)=nlgn
f(2n)=2nlg2n
f(2n)-f(n)=2nlg2n-nlgn
f(2n)-f(n)=2n(lg2+lgn)-nlgn
2nLg2+2nlgn-nlgn
2nlg2+nlgn
5.we shall look for the ratio
f(n)=n^2
f(2n)=2n^2
f(2n)/(n)=2n^2/n^2
f(2n)/(n)=4n^2/n^2
f(2n)/(n)=4
the time will be times 4 the initial tiote tat ratio are used because it will be easier to calculate and compare
6.n^3
f(n)=n^3
f(2n)=(2n)^3
f(2n)/f(n)=(2n)^3/n^3
f(2n)/f(n)=8
the ratio will be times 8 the initial
7.2n
f(n)=2n
f(2n)=2(2n)
f(2n)/f(n)=2(2n)/2n
f(2n)/f(n)=2
Answer:
a² = b² -w² +2wx
Step-by-step explanation:
The algebra is pretty straightforward. Expand the expression in parentheses and add x².
b² -(w -x)² = e² = a² -x²
b² -(w² -2wx +x²) = a² -x² . . . . . expand the square
b² -w² +2wx -x² = a² -x² . . . . . . distribute the minus sign
b² -w² +2wx = a² . . . . . . . . . . . . add x²