Write a complete Java program to create three types of counters as follows:
Please follow these notes:
In: Computer Science
Suppose that a pharmaceutical company makes the assertion that Drug A has a stronger effect than Drug B. To test this claim, 1000 randomly selected people were given the two drugs during different treatment periods. Among them, 600 preferred taking Drug A because of the stronger effect they felt; whereas 400 preferred Drug B. Determine whether there is sufficient evidence, at the 5% level of significance, to support the company’s claim that Drug A is stronger and preferred by more than 50% of patients.
Select one:
a. Reject H0; Drug A is stronger and preferred by less than 50% of patients.
b. Reject H0; Drug A is stronger and preferred by more than 50% of patients.
c. Do not reject H0; Drug A is stronger and preferred by less than 50% of patients.
d. Do not reject H0; Drug A is stronger and preferred by more than 50% of patients.
In: Math
1) Edgar, a manager from Human Resources, thinks the problem stems from night-shift workers not getting proper sleep and consequently inducing errors. He thinks that less than 50% of workers on the night shift are getting at least the seven hours of sleep necessary to perform adequately. HR surveys 80 night-shift workers and finds that 46 of them claim to get at least seven hours of sleep per night. At 95% confidence, can we reject Edgar’s claim? Please use the critical-value method to test this, stating the null and alternative hypotheses as well as the test statistic you will use.
- Lisa, another HR manager, thinks that the problems have nothing to do with the night shift, so she wants to prove to Edgar that the proportion of day-shift workers getting adequate sleep and night-shift workers getting adequate sleep is the same. She interviews 50 day-shift workers and finds that 31 claim to get at least seven hours of sleep per night. Using the surveys for night-shift workers from problem 2, can we say that Lisa is wrong with 95% confidence? In your answer, please use the critical-value method, stating the null and alternative hypotheses as well as the test statistic you will use.
In: Statistics and Probability
The company with the common equity accounts shown here has decided on a two-for-one stock split. The firm’s 37-cent-per-share cash dividend on the new (postsplit) shares represents an increase of 15 percent over last year’s dividend on the presplit stock.
Common stock ($1 par value) $ 470,000
Capital surplus 1,555,000
Retained earnings 3,878,000
Total owners’ equity $ 5,903,000
a. What is the new par value of the stock? (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.)
New par value $______ per share
b. What was last year’s dividend per share? (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.)
Dividends per share last year $_________
In: Finance
An amusement park studied methods for decreasing the waiting time (minutes) for rides by loading and unloading riders more efficiently. Two alternative loading/unloading methods have been proposed. To account for potential differences due to the type of ride and the possible interaction between the method of loading and unloading and the type of ride, a factorial experiment was designed. Use the following data to test for any significant effect due to the loading and unloading method, the type of ride, and interaction. Use α = 0.05.
| Type of Ride | |||
|---|---|---|---|
| Roller Coaster | Screaming Demon | Log Flume | |
| Method 1 | 43 | 50 | 50 |
| 45 | 42 | 46 | |
| Method 2 | 47 | 52 | 48 |
| 49 | 48 | 44 | |
a) Find the value of the test statistic for method of loading and unloading.
Find the p-value for method of loading and unloading. (Round your answer to three decimal places.)
p-value =
b) Find the value of the test statistic for type of ride.
Find the p-value for type of ride. (Round your answer to three decimal places.)
p-value =
c) Find the value of the test statistic for interaction between method of loading and unloading and type of ride.
Find the p-value for interaction between method of loading and unloading and type of ride. (Round your answer to three decimal places.)
p-value =
In: Statistics and Probability
In: Accounting
FastTrack Bikes, Inc. is thinking of developing a new composite road bike. Development will take six years and the cost is $198,100 per year. Once in production, the bike is expected to make $301,477 per year for 10 years. The cash inflows begin at the end of year 7.
For parts a-c, assume the cost of capital is 9.9%.
a. Calculate the NPV of this investment opportunity. Should the company make the investment?
b. Calculate the IRR and use it to determine the maximum deviation allowable in the cost of capital estimate to leave the decision unchanged.
c. How long must development last to change the decision?
For parts d-f, assume the cost of capital is 14.6%.
d. Calculate the NPV of this investment opportunity. Should the company make the investment?
e. How much must this cost of capital estimate deviate to change the decision?
f. How long must development last to change the decision?
a. Calculate the NPV of this investment opportunity.
If the cost of capital is 9.9%, the NPV is $ ___ . (Round to the nearest dollar.)
Should the company make this investment? (Select the best choice below.)
A. Accept the investment because the NPV is equal to or less than zero ($0).
B. Reject the investment because the NPV is less than zero ($0).
C. Accept the investment because the NPV is equal to or greater than zero ($0).
D. Reject the investment because the NPV is equal to or greater than zero ($0).
b. Calculate the IRR and use it to determine the maximum deviation allowable in the cost of capital estimate to leave the decision unchanged.
The IRR is ___ %. (Round to two decimal places.)
If the cost of capital is 9.9%, the maximum deviation is ___ %. (Round to two decimal places.)
c. How long must development last to change the decision?
For the decision to change, development must last ___ years, or longer. (Round to two decimal places.)
d. Calculate the NPV of this investment opportunity. Should the company make the investment?
If the cost of capital is 14.6%, the NPV is $ ___ . (Round to the nearest dollar.)
Should the company make the investment? (Select the best choice below.)
A. Accept the investment because the NPV is equal to or greater than zero ($0)
B. Accept the investment because the NPV is equal to or less than zero ($0).
C. Reject the investment because the NPV is less than zero ($0).
D. Reject the investment because the NPV is equal to or greater than zero ($0).
e. How much must this cost of capital estimate deviate to change the decision?
The maximum deviation is __ %. (Round to two decimal places.)
f. How long must development last to change the decision?
For the decision to change, development must last no longer than __ years
In: Finance
General Meters is considering two mergers. The first is with Firm A in its own volatile industry, the auto speedometer industry, while the second is a merger with Firm B in an industry that moves in the opposite direction (and will tend to level out performance due to negative correlation). General Meters Merger with Firm A General Meters Merger with Firm B Possible Earnings ($ in millions) Probability Possible Earnings ($ in millions) Probability $ 20 .20 $ 20 .15 65 .40 65 .50 110 .40 110 .35 a. Compute the mean, standard deviation, and coefficient of variation for both investments. (Do not round intermediate calculations. Enter your answers in millions. Round "Coefficient of variation" to 3 decimal places and "Standard deviation" to 2 decimal places.) b. Assuming investors are risk-averse, which alternative can be expected to bring the higher valuation?
In: Finance
The confidence interval for the difference in means
|
6.2 - 15.7 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4.4 - 13.9 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
5.6 - 15.1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
3.2 - 12.7 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Math
Cyclops Software has 10 million shares trading at $20/share and
the only debt it has is a ten-
year convertible bond with face value of $50 million, a market
value of 80 million and a coupon rate of 4%. The unlevered beta for
software companies is 1.20 and the bond rating for the
company is Ba3 (with a default spread of 4%). The company paid out
10% of its taxable income as taxes last year but the marginal tax
rate is 40%. If the risk free rate is 2% and the equity risk
premium is 6%, estimate the cost of capital for the firm.
In: Finance