Java Generics (Javas built-in Stack)
What are the problems?
class genStck {
Stack stk = new Stack ();
public void push(E obj) {
push(E);
}
public E pop() {
Object obj = pop();
}
}
class Output {
public static void main(String args[]) {
genStck <> gs = new genStck ();
push(36);
System.out.println(pop());
}
}
In: Computer Science
ACME Incorporated has built a factory 1 kilometer upwind of your home. It is a coal power plant that emits carbon monoxide (CO) at a rate of 500 kilograms per second.
Discussion Question 1
What will the concentration of CO be outside your home be if the factory emits CO at the rate given above, your home is 1 km downwind of the factory, the wind speed is 3 meters per second, and the atmospheric stability is slightly stable? Report in units of kg/ m3. To calculate this concentration, use the simplified Gaussian Plume Equation:
C= QU × 12πσyσz
Where:
We can estimate sy and sz as:
sy = ax0.893 sz = cxd – f
Where:
|
a |
c |
d |
f |
|
|
Very unstable |
213 |
440.8 |
1.941 |
-9.27 |
|
Unstable |
156 |
106.6 |
1.149 |
-3.3 |
|
Slightly unstable |
104 |
61 |
0.911 |
0.0 |
|
Neutral |
68 |
33.2 |
0.725 |
1.7 |
|
Slightly stable |
50.5 |
22.8 |
0.678 |
1.3 |
|
stable |
34 |
14.35 |
0.741 |
0.35 |
Discussion Question 2
Does this concentration violate the 8-hour NAAQS standard for CO (9 ppm)? Note that you need to convert units from kg/m3 to ppm to answer this.
***Hints***
1 kg = 1000 g
The molar mass of CO is 22.01 g/mol
Avogadro’s number is 6.02*1023 molecules/mol
Assuming standard conditions of T=298 Kelvins and P = 1 atm, there are 2.46 *1022 molecules/L of air
1000L = 1 m3
To get units in ppm, do: (# of molecules of CO)/(# of molecules of air) *106
In: Other
11. Suppose that a 32M × 16 memory built using 512K × 8 RAM chips and memory is word-addressable.
a) How many RAM chips are necessary?
b) If we were accessing one full word, how many chips would be involved?
c) How many address bits are needed for each RAM chip?
d) How many banks will this memory have?
e) How many address bits are needed for all of memory?
f) If high-order interleaving is used, where would address 14 (which is E in hex) be located?
g) Repeat Exercise 11f for low-order interleaving.
In: Computer Science
Encrypt the given plaintext with the key. Built the key matrix (big size). And show how you get each letter ciphertext (you can do that by making shapes and arrows in key matrix).
No need to draw key matric again and again.
Show all your work. If you just write cipher text and key matric without showing (shapes and arrow on key matrix) that how you get the ciphertext then your marks will be deducted.
key : alphabets
plaintext : smartness
In: Computer Science
You have just taken a job as a consultant for a custom-built motorcycle company. The plant manager says he had read that a synchronized push supply chain strategy was associated with stable demand, and one of the goals for his company was to remove as much demand variability as possible. He recommends using a synchronized push strategy for their customized product. How would you reply to him?
(2-3 paragraphs please) (5-6 sentences each)
In: Operations Management
In: Computer Science
You are the engineer who is responsible about renovation of your company headquarters. Two plans were proposed. Plan X involves remodeling the existing headquarters at a cost of $ 2.25 million. The expected useful life of the existing headquarters after remodeling is 25 years and the annual maintenance and operating (M&O) cost would be $126,000 per year. Plan Y involves building a new headquarters and selling the existing one with a net price of $750,000 three years from now. A total of 5 thousands square meter is required for the new headquarters. The cost of the land is estimated to be $366,000 per thousand square meters. The size of the building is 1 thousand square meter and the building will be 10 stories. The construction cost of the building is $150 per square meter and requires 5 years assuming 2 stories are built per year. In addition, the architect and contractor fees are expected to be $420,000. The expected useful life of the new headquarters is 50 years and the annual maintenance and operating (M&O) cost would be $116,000 per year. If the interest rate is i 13% per year, evaluate which plan is better on the basis of: (a) the present worth analysis, and (b) the conventional B/C analysis Case pls with explained procedure. Pa, Pc , PW for plan X , (Pa, Ps, PW, for plan Y) lastly A(C+O) , Delta B and delta B/C
thats what we are supose to answer???
In: Economics
At Bradford Bed and Breakfast, the manager is looking to expand the facility. The following facts are known:
Cost of the expansion $2,200,000
The Manager is paid $99,000 per year. Compensation will not change due to the expansion
Property taxes will increase by $33,000 annually
The expansion will add 10 rooms and it is expected all 10 will be occupied by paying guests
The addition of the 10 guests each day is expected to add $800,000 of revenue annually
A garden and patio that was built last summer at a cost of $75,000 will be removed to make way for the expansion.
Additional cost of staff based on 10 occupied rooms is $260,000 annually
Additional cost of supplies and food based on 10 occupied rooms $80,000 annually
All expenses are expected to increase 3% annually. Due to competition revenue is expected to increase only 2% annually.
The useful life of the expansion is 8 years. Bradford uses a 8% discount rate.
Based on this information determine the following:
a. After the building is expanded, what is the incremental fixed cost incurred annually as a result of the expansion?
b. What are the incremental variable expense incurred annually due to the expansion?
c. What are the sunk costs of the expansion, if any?
d. Create an 8 year proforma cash flow statement for the expansion project (assume there are no income taxes)
e. Calculate the projects NPV and IRR. Should the project be accepted or rejected?
In: Accounting
1) At Bradford Bed and Breakfast, the manager is looking to expand the facility. The following facts are known:
Cost of the expansion $2,200,000
The Manager is paid $99,000 per year. Compensation will not change due to the expansion
Property taxes will increase by $33,000 annually
The expansion will add 10 rooms and it is expected all 10 will be occupied by paying guests
The addition of the 10 guests each day is expected to add $800,000 of revenue annually
A garden and patio that was built last summer at a cost of $75,000 will be removed to make way for the expansion.
Additional cost of staff based on 10 occupied rooms is $260,000 annually
Additional cost of supplies and food based on 10 occupied rooms $80,000 annually
All expenses are expected to increase 3% annually. Due to competition revenue is expected to increase only 2% annually.
The useful life of the expansion is 8 years. Bradford uses a 8% discount rate.
Based on this information determine the following:
a. After the building is expanded, what is the incremental fixed cost incurred annually as a result of the expansion?
b. What are the incremental variable expense incurred annually due to the expansion?
c. What are the sunk costs of the expansion, if any?
d. Create an 8 year proforma cash flow statement for the expansion project (assume there are no income taxes)
e. Calculate the projects NPV and IRR. Should the project be accepted or rejected?
In: Accounting
Utah Enterprises is considering buying a vacant lot that sells for $1.8 million. If the property is purchased, the company's plan is to spend another $6 million today (t = 0) to build a hotel on the property. The after-tax cash flows from the hotel will depend critically on whether the state imposes a tourism tax in this year's legislative session. If the tax is imposed, the hotel is expected to produce after-tax cash inflows of $810,000 at the end of each of the next 15 years, versus $1,710,000 if the tax is not imposed. The project has a 14% cost of capital. Assume at the outset that the company does not have the option to delay the project. Use decision-tree analysis to answer the following questions. What is the project's expected NPV if the tax is imposed? Negative value, if any, should be indicated by a minus sign. Do not round intermediate calculations. Round your answer to the nearest cent. $ What is the project's expected NPV if the tax is not imposed? Negative value, if any, should be indicated by a minus sign. Do not round intermediate calculations. Round your answer to the nearest cent. $ Given that there is a 50% chance that the tax will be imposed, what is the project's expected NPV if the company proceed with it today? Negative value, if any, should be indicated by a minus sign. Do not round intermediate calculations. Round your answer to the nearest cent. $ Although the company does not have an option to delay construction, it does have the option to abandon the project 1 year from now if the tax is imposed. If it abandons the project, it would sell the complete property 1 year from now at an expected price of $7.8 million. Once the project is abandoned, the company would no longer receive any cash inflows from it. If all cash flows are discounted at 14%, would the existence of this abandonment option affect the company's decision to proceed with the project today? Assume there is no option to abandon or delay the project but that the company has an option to purchase an adjacent property in 1 year at a price of $2 million. If the tourism tax is imposed, then the net present value of developing this property (as of t = 1) is only $300,000 (so it wouldn't make sense to purchase the property for $2 million). However, if the tax is not imposed, then the net present value of the future opportunities from developing the property would be $4 million (as of t = 1). Thus, under this scenario it would make sense to purchase the property for $2 million. Given that cash flows are discounted at 14% and that there's a 50-50 chance the tax will be imposed, how much would the company pay today for the option to purchase this property 1 year from now for $2 million? Negative value, if any, should be indicated by a minus sign. Do not round intermediate calculations Round your answer to the nearest cent. $
In: Finance