problem 1 (Duplicate Elimination) code in JAVA please
Use a one-dimensional array to solve the following problem: Write an application that inputs ten numbers, each between 10 and 100, both inclusive. Save each number that was read in an array that was initialized to a value of -1 for all elements. Assume a value of -1 indicates an array element is empty. You are then to process the array, and remove duplicate elements from the array containing the numbers you input. Display the contents of the array to demonstrate that the duplicate input values were actually removed.
Sample Output could be as follows:
Sample 1:
Please input a value in [10,100]
value 1: 78
value 2: 34
value 3: 46
value 4: 74
value 5: 87
value 6: 39
value 7: 39
value 8: 46
value 9: 78
value 10: 78
The unique values are:
78 34 46 74 87 39
In: Computer Science
A small appliances rental company in CT has several branches. It is renting TVs and other small home appliances to its customers. New appliances are recorded in the system before they are offered for rent. The first time a customer rents an item she/he needs to provide the necessary personal and payment card details. A deposit equal to the double amount of the estimated total of the rental bill (including insurance premium for possible damage) is charged to the card on the first day of a rental. Upon return of the appliance the actual price for the rental is charged to the customer card and the deposit is returned to the customer. A text message to customers who are overdue for more than 3 days is generated every day. The current system is run on old standalone PCs that are not connected in a central system. The owner of the company requested a software expert to develop a new centralized system that keeps track of all rentals.
Task 1. Formulate only the section on business requirements (as part of the System Request document) for the new system. (0.7 p)
Task 2. If you are the project manager, explain to the owner of the company why you will be using a Gantt chart in the management of the new project. Explain also why you will be using a PERT chart in the management of the new project. (0.7p)
In: Computer Science
A small appliances rental company in CT has several branches. It is renting TVs and other small home appliances to its customers. New appliances are recorded in the system before they are offered for rent. The first time a customer rents an item she/he needs to provide the necessary personal and payment card details. A deposit equal to the double amount of the estimated total of the rental bill (including insurance premium for possible damage) is charged to the card on the first day of a rental. Upon return of the appliance the actual price for the rental is charged to the customer card and the deposit is returned to the customer. A text message to customers who are overdue for more than 3 days is generated every day. The current system is run on old standalone PCs that are not connected in a central system. The owner of the company requested a software expert to develop a new centralized system that keeps track of all rentals.
Task 1. Formulate only the section on business requirements (as part of the System Request document) for the new system. (0.7 p)
Task 2. If you are the project manager, explain to the owner of the company why you will be using a Gantt chart in the management of the new project. Explain also why you will be using a PERT chart in the management of the new project. (0.7p)
In: Computer Science
Problem 22-05
Merger Analysis
Marston Marble Corporation is considering a merger with the Conroy Concrete Company. Conroy is a publicly traded company, and its beta is 1.30. Conroy has been barely profitable, so it has paid an average of only 20% in taxes during the last several years. In addition, it uses little debt; its target ratio is just 20%, with the cost of debt 8%.
If the acquisition were made, Marston would operate Conroy as a separate, wholly owned subsidiary. Marston would pay taxes on a consolidated basis, and the tax rate would therefore increase to 40%. Marston also would increase the debt capitalization in the Conroy subsidiary to wd = 35%, for a total of $20.18 million in debt by the end of Year 4, and pay 10.5% on the debt. Marston's acquisition department estimates that Conroy, if acquired, would generate the following free cash flows and interest expenses (in millions of dollars) in Years 1-5:
| Year | Free Cash Flows | Interest Expense |
| 1 | $1.30 | $1.2 |
| 2 | 1.50 | 1.7 |
| 3 | 1.75 | 2.8 |
| 4 | 2.00 | 2.1 |
| 5 | 2.12 | ? |
In Year 5, Conroy's interest expense would be based on its beginning-of-year (that is, the end-of-Year-4) debt, and in subsequent years both interest expense and free cash flows are projected to grow at a rate of 6%.
These cash flows include all acquisition effects. Marston's cost of equity is 9.6%, its beta is 1.2, and its cost of debt is 9.5%. The risk-free rate is 6%, and the market risk premium is 3.0%. Use the compressed APV model to answer the following questions.
In: Accounting
Problem 22-05
Merger Analysis
Marston Marble Corporation is considering a merger with the Conroy Concrete Company. Conroy is a publicly traded company, and its beta is 1.30. Conroy has been barely profitable, so it has paid an average of only 25% in taxes during the last several years. In addition, it uses little debt; its target ratio is just 30%, with the cost of debt 8%.
If the acquisition were made, Marston would operate Conroy as a separate, wholly owned subsidiary. Marston would pay taxes on a consolidated basis, and the tax rate would therefore increase to 35%. Marston also would increase the debt capitalization in the Conroy subsidiary to wd = 40%, for a total of $18.15 million in debt by the end of Year 4, and pay 11.0% on the debt. Marston's acquisition department estimates that Conroy, if acquired, would generate the following free cash flows and interest expenses (in millions of dollars) in Years 1-5:
| Year | Free Cash Flows | Interest Expense |
| 1 | $1.30 | $1.2 |
| 2 | 1.50 | 1.7 |
| 3 | 1.75 | 2.8 |
| 4 | 2.00 | 2.1 |
| 5 | 2.12 | ? |
In Year 5, Conroy's interest expense would be based on its beginning-of-year (that is, the end-of-Year-4) debt, and in subsequent years both interest expense and free cash flows are projected to grow at a rate of 8%.
These cash flows include all acquisition effects. Marston's cost of equity is 8.2%, its beta is 1.2, and its cost of debt is 8.0%. The risk-free rate is 4%, and the market risk premium is 3.5%. Use the compressed APV model to answer the following questions.
What is the value of Conroy's unlevered operations? Do not round
intermediate calculations. Enter your answer in millions. For
example, an answer of $1.2 million should be entered as 1.2, not
1,200,000. Round your answer to two decimal places.
$ million
What is the value of Conroy's tax shields under the proposed merger
and financing arrangements? Do not round intermediate calculations.
Enter your answer in millions. For example, an answer of $1.2
million should be entered as 1.2, not 1,200,000. Round your answer
to two decimal places. Do not round intermediate
calculations.
$ million
What is the dollar value of Conroy's operations? Enter your
answer in millions. For example, an answer of $1.2 million should
be entered as 1.2, not 1,200,000. Round your answer to two decimal
places.
$ million
If Conroy has $8 million in debt outstanding, how much would
Marston be willing to pay for Conroy? Enter your answer in
millions. For example, an answer of $1.2 million should be entered
as 1.2, not 1,200,000. Round your answer to two decimal places. Do
not round intermediate calculations.
$ million
In: Accounting
In: Accounting
5. A monopoly company faces the demand curve given by
the equation P = 300 - 2Q. Its production process is characterized
by the total cost function TC=4Q2. The company charges a single
price in the market.
a. What is the marginal cost (as a function of output Q)?
b. What is the total revenue (as a function of output Q)?
c. What is the marginal revenue (as a function of output Q)?
d. What levels of output and price would maximize total revenue of
the firm?
e. Now calculate profit-maximizing output, price, and the maximum profit of the company. Illustrate your solution graphically.
f. If a $500 lump-sum tax is levied on this firm, what will be the output and price of its product, and the firm’s profit?
g. If a $60 excise (per unit) tax is levied on the product of the company, how much will the monopolist produce, what price will be charged, and what profit will be made?
In: Economics
A USA based cable broadband company wants to compare the average
customer satisfaction scores between its east coast and west coast
customer bases. The customer survey asks for a score between 1 and
5, with 1 being poor and 5 being excellent.
174 east coast customers are surveyed, and the sample mean is 3.51
with a sample standard deviation of 0.51. For the west coast, 355
customers are surveyed, and the sample mean is 3.24 with a sample
standard deviation of 0.52.
a. Create a 95% confidence interval for the average score for west coast customers. Interpret this interval in context of the problem.
b. Now say you consider the difference between the average scores between west coast and east coast. Create a 95% confidence interval for the difference in average scores (specify what difference you are considering).
c. The company wants to investigate if the average score of the east coast customers is higher than the average score of the west coast customers. Write the null and alternative to test this hypothesis.
d. Compute the test statistic for this problem and describe how you would obtain the p-value for this test.
e. Say the p-value is very close to 0. In a sentence or two explain what that means in context of this problem.
In: Statistics and Probability
Metal Holdings Inc.
You have been assigned the task of creating a simple relational database using SQLite database by the owner of “Metal Holdings” who is in the business of selling industrial metals to customers (mostly wholesale suppliers) who buy from the company.
Your goal is to design and build a database that would be responsible for:
The following is a list of metals sold by the company (these below metals should be available in your uploaded SQLite database):
In: Computer Science
Consider the automobile insurance company database we use for examples in class. For each problem, write an SQL statement to retrieve the specified data.
Database Schema:
• People (ssn, fname, lname, city, state)
• Agents (ssn, salary, photo)
• Autos (vin, make, year, agent_ssn)
• Owns (ssn, vin)
• Accidents (aid, accident_date, city, state)
• Involvements(aid, vin, damages, driver_ssn)
In: Computer Science