Questions
Programming Language : JAVA Create an interface named Turner, with a single method called turn(). Then...

Programming Language : JAVA

Create an interface named Turner, with a single method called turn(). Then create 4 classes:

1- Leaf: that implements turn(), which changes the color of the Leaf object and returns true. If for any reason it is unable to change color, it should return false (you can come up with a reason for failure). The new color can be determined at random.

2- Document: that implements turn(), which changes the page on the document to the next page and returns true. If the current page is the last page of the document, then it returns false. This class should have a method called returnIdDate(), which returns a String containing the ID of the Document and the date it was published.

3- Pancake: that implements turn(), which flips the pancake if it has not flipped before and returns true. If the pancake has already been flipped, then it returns false.

4- Think of one more objects that can use turn(). Create the class and implement the turn() method. Show your creativity.

Write an application, DemoTurners, which:

  1. Creates an array of 4 Turner objects and adds one object for each of the 4 class types to it.
  2. Demonstrates polymorphism by calling the turn() method on each object in a loop.
  3. Prints the Document object’s returnIdDate method using the Turner object (how can this be done?)

In: Computer Science

choose the best answer: A- An ideal gas enters an adiabatic nozzle at 10 m/s and...

choose the best answer:

A- An ideal gas enters an adiabatic nozzle at 10 m/s and exits at 300 m/s. If the incoming specific enthalpy of the gas is 2,111 kJ/kg, what is the exiting specific enthalpy of the gas in kJ/kg?

Choices: 1: 2021.1 Kj/Kg , 2: 2200.9 kj/Kg , 3: 92011 Kj/Kg , -2021.2 kj/Kg.

B- A material with a specific heat, Cp, of 5 kJ/kg-K passes through an insulated turbine at 4 kg/s. The incoming temperature of the material is 100°C and the exiting temperature is 50°C. Determine the shaft work in kW.

Choices: 1: 1000 KW , 2: -1000 KW , 3: 250 KW , 4: -250 KW.

C- Which of the following statements about a well-insulated heat exchanger is false (ignoring kinetic and potential energy changes):

Choices: 1: heat is exchanged between the system and the surroundings , 2: the 2 materials do not physically mix , 3: energy is exchanged between the materials , 4: the sum of the enthalpy changes equals zero.

D- An open vat contains 1 kg of boiling ammonia at 1 bar. Calculate the time (in seconds) it takes for the vat to empty if the heat is added at a rate of 100 kW?

Answer: ?

In: Mechanical Engineering

Hi, I have a set of three similar questions here. I don't necessarily need them all...

Hi, I have a set of three similar questions here. I don't necessarily need them all answered. Maybe just one or two, what I really need is the formulas used in solving these types of questions and an explanation of that, which doesn't need to be detailed, just an explanation of the notation and variables used. Please!! Thanks!

25. A levered firm has a debt-to-equity ratio of 0.38 and an equity beta of 1.42. What would be the beta of the firm if it switched to an all-equity financial structure?

A) 1.420 B) 0.704 C) 0.972 D) 0.939 E) 1.029

26. Metal Roofs has an equity beta of 1.47, a capital structure with three parts of debt for every five parts of equity, and a zero tax rate. What is its asset beta?

A) 1.048 B) 0.940 C) 1.102 D) 1.006 E) 0.919

27. An all-equity firm has a beta of 0.94. Assume the beta of debt is equal to the risk-free beta. If the firm changes to a debt-equity ratio of 0.35, its equity beta would be ________, and if it changes its debt-equity ratio to 0.40, its equity beta would be ________.

A) 1.269; 1.316 B) 1.269; 1.234 C) 1.190; 1.234 D) 1.190; 1.316 E) 1.234; 1.316

In: Finance

You hold a portfolio of US Treasuries with a roughly even split between 1 year, 5...

You hold a portfolio of US Treasuries with a roughly even split between 1 year, 5 year and 10-year bonds (these are the years to maturity as of now). Assume that all US Treasury yields would have a similar outlook (obviously different yields, but the same trends for 1, 5 and 10-year bonds). Further, assume that your thoughts were in line with most of the market, that is, bond yields would continue to increase through all of 2019.

1)     Back in June of 2019, under the assumptions above, which Treasuries would you sell first? Your 1, 5 or 10-year bonds and why – I want to see your thinking on maturity and price effects related to interest rate changes.

2)   Explain why changes in bond yield (required returns) and bond prices are inversely related.

3)     Discuss how price risk may differ for investors that intend to hold their bills/bonds to maturity vs. those that are more likely to churn or turn over their bond portfolios. This is not a big “investment class” discussion, this is about the basics that you should understand from the course material. As a hint, think about holding period return and yield to maturity as well as the value of a bond when you sell it vs. the value at maturity.

In: Finance

1. Following is the schedule of quantities that would be supplied and demanded at various prices...

1. Following is the schedule of quantities that would be supplied and demanded at various prices for oranges. Price Quantity Demanded Quantity Supplied $10.00 200 600 9.00 250 550 8.00 300 500 7.00 350 450 6.00 400 400 5.00 450 350 4.00 500 300 3.00 550 250 2.00 600 200

a. Graph the supply and demand curves. Identify the market equilibrium price.

b. If 40% of the orange crop is lost due to bad weather, show the impact on the market using the chart with any changes to the supply and/or demand curves to identify the new equilibrium price. (Use the additional column on the chart as needed to calculate new quantities and graph them to identify the impact on the market.)

2- For each of the following situations, use supply and demand curves and a written description to explain the effect on the market, including the changes in equilibrium price and quantity and any initial shift in either supply or demand.

  1. The effect on the market for new automobiles if auto manufacturers must pay an increase in wages for auto workers.

  1. The effect on the market for air travel if high-speed rail at 300 km/hr is introduced.

  1. The effect on the market for Netflix if prices for satellite TV double..

  1. The effect on the market for wheat if farmers improve production efficiency with better equipment.

In: Economics

Since 2009, the national minimum wage has been $7.25 per hour for most occupations in the...

Since 2009, the national minimum wage has been $7.25 per hour for most occupations in the private sector. Many of those who support an increase in the minimum wage believe this is one way the government could possibly reduce poverty, while its opponents believe that it creates unemployment and hurts low-skilled workers. The following items address the idea of raising the minimum wage from the current federal minimum of $7.25 per hour.

1) Describe who the suppliers and demanders are in the labor market. Is a government-mandated minimum wage a price floor or ceiling? Discuss the effect of a minimum wage law from a supply and demand standpoint, making sure to address the concept of surplus or shortage.

2) Raising the minimum wage will also affect the labor costs of businesses. What is going to happen to the prices these businesses charge for their products? And who is going to be most affected by these price changes, those with low incomes or with high incomes?

3) Discuss any potential changes in the incentives for low-skilled workers - those who keep their jobs and their hours - to increase their human capital when the minimum wage increases. What about those who lose their jobs or never get hired? Discuss the incentives for employers to substitute capital inputs (technology and automation) for labor.

In: Economics

1. Most economic theories of exchange rate movements agree that three factors have an important impact...


1. Most economic theories of exchange rate movements agree that three factors have an important impact on future exchange rate movements in a country’s currency. Which of the following is not of the three main factors?
A. The country’s price inflation
B. The country’s interest rate
C. Market psychology
D. The country’s legal system

2. Which of the following statement is true?
A. In general, FDI occurs whenever a local citizen, organization, or affiliated group takes an interest of 50 percent of more in a foreign business entity
B. Foreign portfolio investment is a form of FDI because foreign portfolio investment involves obtaining a management control
C. When a firm exports its products to a foreign country, foreign direct investment ( FDI) occurs
D. When a firm undertakes FDI, it becomes a multinational enterprise

3. Prior research on the determinants of exchange rate suggest that relative inflation rates and nominal interest rate differentials are all moderately good predictors of short-run changes in exchange rates, but predictors of long-run changes in exchange rates
True
False

4. If the value of the U.S. dollar rises sharply against the Chinese yuan, this exchange rate movements is likely to boost China’s exports to the U.S., holding other things constant
True
False

In: Economics

I. The government in a certain economy has offered all business significant investment tax credits. Firms...

I. The government in a certain economy has offered all business significant investment tax credits. Firms as a result invest heavily in new capital equipment and households have taken mortgages to buy new homes.

  1. Draw an aggregate-demand/aggregate supply diagram showing the short-run effect of the investment tax credits on the economy. Label the new levels of prices and real output. Explain in words why the aggregate quantity of output supplied changes.
  2. Now use the diagram that you have drawn from part (a) to show the new long-run equilibrium of the economy. (Assume here, there’s no change in the long run aggregate-supply curve.) Explain in words why the aggregate quantity of output demanded changes between the short run and the long run.
  3. How might the investment boom affect the long-run aggregate supply curve? Explain.

II. Explain whether each of the following events will increase, decrease or have no effect on the long-run aggregate supply.

  1. The discovery of iron ore deposits in the United States.
  2. Intel invents a new and more powerful computer chip.
  3. Congress raises minimum wage to $18.
  4. The United States experience a significant decline in immigration.
  5. The price of raw material sharply increases.

In: Economics

We are evaluating a project that costs $756,000, has a life of 6 years, and has...

We are evaluating a project that costs $756,000, has a life of 6 years, and has no salvage value. Assume that depreciation is straight-line to zero over the life of the project. Sales are projected at 32,000 units per year. Price per unit is $60, variable cost per unit is $25, and fixed costs are $665,000 per year. The tax rate is 24 percent and we require a return of 12 percent on this project.

a.

Calculate the accounting break-even point. (Do not round intermediate calculations and round your answer to the nearest whole number, e.g., 32.)

b-1. Calculate the base-case cash flow and NPV. (Do not round intermediate calculations and round your NPV answer to 2 decimal places, e.g., 32.16.)
b-2. What is the sensitivity of NPV to changes in the sales figure? (Do not round intermediate calculations and round your answer to 3 decimal places, e.g., 32.161.)
c. What is the sensitivity of OCF to changes in the variable cost figure? (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and round your answer to the nearest whole number, e.g., 32.)

a.

Break – even point

units

b-1.

Cash Flow

NPV

b-2.

ΔNPV/ΔQ

c.

ΔOCF/ΔVC

In: Finance

Consider a project to supply Detroit with 40,000 tons of machine screws annually for automobile production....

Consider a project to supply Detroit with 40,000 tons of machine screws annually for automobile production. You will need an initial $5,600,000 investment in threading equipment to get the project started; the project will last for 6 years. The accounting department estimates that annual fixed costs will be $600,000 and that variable costs should be $250 per ton. Further, the accounting department will depreciate the initial fixed asset investment straight-line to zero over the 6-year project life and estimate a salvage value of $450,000 after dismantling costs. The marketing department estimates that the automakers will let the contract at a selling price of $340 per ton. The engineering department estimates you will need an initial net working capital investment of $560,000. You require a return of 13 percent and face a marginal tax rate of 24 percent on this project. Suppose you’re confident about your own projections, but you’re a little unsure about Detroit’s actual machine screw requirements. a. What is the sensitivity of the project OCF to changes in the quantity supplied? What about the sensitivity of NPV to changes in quantity supplied? c. Given the sensitivity number you calculated, is there some minimum level of output below which you wouldn’t want to operate? Show step by step

In: Finance