Questions
Assignment Purpose The purpose of this lab is to write a well commented java program that...

Assignment Purpose

The purpose of this lab is to write a well commented java program that demonstrates the use and re-use of methods with input validation.

Instructions

  1. It is quite interesting that most of us are likely to be able to read and comprehend words, even if the alphabets of these words are scrambled (two of them) given the fact that the first and last alphabets remain the same. For example,

“I dn'ot gvie a dman for a man taht can olny sepll a wrod one way.” (Mrak Taiwn)

“We aer all moratls, Hamrbee is an immoratl, and tehre is no question abuot it.” (Kevin Unknown)

  1. Write a method named scramble that returns a String and takes a String as an argument.
    1. The argument is actually a word (of length 6 or more).
    2. It then constructs a scrambled version of that word, randomly flipping two characters other than the first and last one.
  2. Then write the main method in which you would read the word from the user, send it to scramble, and print the scrambled word.
    1. You can use a loop to read multiple words if you like but it is not necessary.
    2. If the length of the entered word is less than 6, you should keep prompting the user to enter a valid word.
  3. After writing all the comments, generate a Javadoc and submit it with the java file.

Hint: First generate two random integers in range of the length of the string. Then use substring method to access characters at those locations. Rest is left to your imagination.

In: Computer Science

Excel Hydro took a loan contract which requires a payment of $40 million plus interest two...


Excel Hydro took a loan contract which requires a payment of $40 million plus interest two years after the contract's date of issue. The interest rate on the $40 million face value is 9.6% compounded quarterly. Before the maturity date, the original lender sold the contract to a pension fund for $43 million. The sale price was based on a discount rate of 8.5% compounded semi-annually from the date of sale.

Excel Hydro is also considering building a nuclear power plant, which will be ready for production in 2030. The country's governing body is also considering a decommissioning liability law for the operator to put aside $1 million every month towards decommissioning cost. If the production life of the plant is 60 years and the operator puts the money at the end of the month in a savings account, earning 7.25% compounded monthly.

During the 60 years of production life of the plant, the operator will put $1 million at the end of the month in a savings account, earning 7.25% compounded monthly. At the end of the production life of the plant, there are no more contributions and the money is expected to grow at the rate of 6% compounded quarterly for the next 30 years.


Six years ago, Excel Hydro Inc. purchased a mailing machine at a cost of $368,000. This equipment is currently valued at $172,200 on today's statement of financial position but could actually be sold for $211,400. This is the only fixed asset the firm owns. Net working capital is $121,000 and long-term debt is $82,500. The Vice President of Excel Hydro, Inc. wants to improve the current ratio on the company's next financial statement.

5.       What is the book value of shareholders' equity?

6.       Explain what the Vice President can legitimately do now to help accomplish this goal. Provide specific examples in your answer.

Excel Hydro plans to raise $6.2 million to expand their business. To accomplish this, they plan to sell 20-year, $1,000 face value, zero-coupon bonds. The bonds will be priced to yield 9.5%. The company plans on depositing $10,000 a year in real terms into your investment account for the next four years. The relevant nominal discount rate is 7.5% and the inflation rate is 4.2%.

7.       What is the minimum number of bonds they must sell to raise the $6.2 million they need?

8.       What are the deposits worth in today's dollars?

Excel Hydro Inc. has just issued dividends at $2 per share. There are 500,000 shares outstanding. The recently released Income statement shows net earnings of $1200,000. Dividends will grow at the rate of 10% for the next four years. The required rate of return is 12%.

9. Calculate the EPS of the company.

10. Calculate the Present value of the stock.

In: Accounting

1. A circus performer stretches a 16 kg tightrope between two towers separated by 40 meters....

1. A circus performer stretches a 16 kg tightrope between two towers separated by 40 meters. He strikes one end of the rope and sends a wave along it toward the other tower. He notes that it takes the wave on the string 2.9 seconds to reach the opposite tower and come back. (a) At what frequency would he have to hop up and down to create a standing wave with 5 nodes? (b) What tension would the rope have?

In: Physics

5. Provide two (2) treatment strategies and describe the nursing management (in 30-40 words each) of...

5. Provide two (2) treatment strategies and describe the nursing management (in 30-40 words each) of the following mental health conditions

Mental health conditions

Treatment strategies

Nursing management

Manic Episode

Electroconvulsive therapy,

Family and marital therapy

Assess the character of verbal speech like tone of voice, pace at which thoughts are processed.

Observe the rate at which words are spoken are relevant.

Check the sleep disturbances.

Mood and affect should be assessed for congruency.

Mental health conditions

Treatment strategies

Nursing management

5.1

Personality disorders

5.2

Anxiety disorders

5.3

Psychosis

5.4

Organic brain/mental disorders

5.5

Panic disorder

5.6

Social phobia and specific phobias

5.7

Obsessive-compulsive personality disorder

5.8

Post-traumatic stress disorder

5.9

Depression

5.10

Bipolar disorder

5.11

Eating disorders

5.12

Borderline personality disorder

5.13

Schizophrenia

5.14

Dementia

5.15

Delirium

In: Nursing

Two hundred kg of liquid contains 40% pentane, and rest hexane. Pentane MW is 72.15 g/...

Two hundred kg of liquid contains 40% pentane, and rest hexane. Pentane MW is 72.15 g/ gmol and SG (20C/4C) is 0.17. Hexane MW is 86.17 g/ gmol and SG (20C/4C) is 0.659. Determine a) the total number of moles, b) the mole fraction composition of the liquid, c) the average molecular weight and d) the average density of the solution.

In: Chemistry

Springfield Corporation, whose tax rate is 40%, has two sources of funds: long-term debt with a...

Springfield Corporation, whose tax rate is 40%, has two sources of funds: long-term debt with a market value of $10,000,000 and an interest rate of 8%, and equity capital with a market value of $10,000,000 and a cost of equity of 13.2%. Springfield uses its weighted average cost of capital to calculate the EVA for its Dallas division. For the latest year, the Dallas division had a NOPAT of $250,000, total assets of $1,000,000 and current liabilities of $200,000. The division’s EVA is:

$180,000

$165,200

$160,000

$78,000

$178,000

$225,000

In: Accounting

Excel Hydro took a loan contract which requires a payment of $40 million plus interest two...

Excel Hydro took a loan contract which requires a payment of $40 million plus interest two years after the contract's date of issue. The interest rate on the $40 million face value is 9.6% compounded quarterly. Before the maturity date, the original lender sold the contract to a pension fund for $43 million. The sale price was based on a discount rate of 8.5% compounded semi-annually from the date of sale.

Excel Hydro is also considering building a nuclear power plant, which will be ready for production in 2030. The country's governing body is also considering a decommissioning liability law for the operator to put aside $1 million every month towards decommissioning cost. If the production life of the plant is 60 years and the operator puts the money at the end of the month in a savings account, earning 7.25% compounded monthly.

During the 60 years of production life of the plant, the operator will put $1 million at the end of the month in a savings account, earning 7.25% compounded monthly. At the end of the production life of the plant, there are no more contributions and the money is expected to grow at the rate of 6% compounded quarterly for the next 30 years.

Explain what the Vice President can legitimately do now to help accomplish this goal. Provide specific examples in your answer.

In: Accounting

1) A book manufacturing company has two different production plants, plant A and plant B. 40%...

1) A book manufacturing company has two different production plants, plant A and plant B. 40% of books come from plant A. Of the books that come from plant A 30% are defective and 70% work as intended. Of the books from plant B 10% are defective and 90% work as intended. On top of this 10% of the defective books from plant A explode.

A) Draw a tree diagram of this data.

B) What is the probability of randomly selecting

C) What is the probability of randomly selecting adefective book which doesn’t explode?

In: Statistics and Probability

3.5.12 Suppose there are two urns. Urn I contains 100 chips: 30 are labelled 1, 40...

3.5.12 Suppose there are two urns. Urn I contains 100 chips: 30 are labelled 1, 40 are labelled 2, and 30 are labelled 3. Urn 2 contains 100 chips: 20 are labelled 1, 50 are labelled 2, and 30 are labelled 3. A coin is tossed and if a head is observed, then a chip is randomly drawn from urn 1, otherwise a chip is randomly drawn from urn 2. The value Y on the chip is recorded. If an occurrence of a head on the coin is denoted by X = 1, a tail by X = 0, and X ∼ Bernoulli(3/4), then determine E(X | Y), E(Y | X), E(Y), and E(X)

In: Math

your firm is considering two financing plans. The key information follows: use a 40% tax rate...

your firm is considering two financing plans. The key information follows: use a 40% tax rate

Source of funds Plan A Plan B
Long term Dent $500 @ 6% $2,500 @ 10%
Preferred Stock 50 shares, $2 dividend per share 10 shares, $2 dividend per share
Common Stock 60 shares 15 shares

Draw the Earning Per Share and Earning Before Interest Tax line for each plan on the same set axes. Over what range of Earnings before income tax would you prefer Plan A?

Show in excel if possible

In: Finance