Questions
Write a public Java method called WriteToFile that opens a file called words.dat which is empty....

Write a public Java method called WriteToFile that opens a file called words.dat which is empty. Your program should read a String array called words and write each word onto a new line in the file. Your method should include an appropriate throws clause and should be defined within a class called TextFileEditor.

The string should contain the following words:
{“the”, “quick”, “brown”, “fox”}

In: Computer Science

After attending a seminar about corporate social responsibility (CSR), John advised Mary to focus her investment...

After attending a seminar about corporate social responsibility (CSR), John advised Mary to
focus her investment on those companies with CSR plans. However, Mary argued with John
that maximizing shareholders’ wealth is the only goal of financial management, not CSR. Do
you agree with Mary’s viewpoint? Think of some specific scenarios to illustrate your
arguments and justify your stance. (word limit: 300 words)

In: Finance

Empathy, congruence, and unconditional positive regard are core aspects of Rogerian therapy. According to Rogers, these...

Empathy, congruence, and unconditional positive regard are core aspects of Rogerian therapy. According to Rogers, these aspects allow the therapist to facilitate positive change in the client. Is it possible to be fully empathetic and congruent with someone who is not of your race and/or culture? If someone from another background was your therapist, what would he/she need to know to act with empathy or congruence toward you? ( 300 word response please)

In: Psychology

Write a program in python that opens a text file, whose name you enter at the...

Write a program in python that opens a text file, whose name you enter at the keyboard.

•You will be using the file filetext.txt to test your program

•Print out all of the individual, unique words contained in the file, in alphabetical order.

MAKE SURE THAT ALL THE WORDS YOU PRINT OUT ARE IN A SINGLE COLUMN, ONE WORD PER COLUMN!•Print out the number of unique words appearing in text.txt

In: Computer Science

Your program should take a string representing a sentence in English and format it properly. The...

Your program should take a string representing a sentence in English and format it properly. The input sentence may have any or all of the following errors:

Random letters may be capitalized.

The sentence may not end with a proper punctuation mark (period, question mark, or exclamation point).

There may be spaces at the beginning or end, or more than one space between words.

Format the sentence to fit the following rules:

The first letter of the first word should be capitalized.

The word "I" should be capitalized.

All other letters in all words should be in lowercase.

The sentence should end with a punctuation mark. If the original sentence did not end with a punctuation mark, add a period. (If the original sentence ended with more than one punctuation mark, it is not your responsibility to detect or fix this. However, you should not cause this problem yourself by adding a period if the sentence already ends with a punctuation mark.)

There should be no spaces at the beginning or end of the sentence.

There should be only a single space between words.

Example:

java Sentence

  corRect pUNCtuation    is hard, i  tHINk

RESULT: Correct punctuation is hard, I think.

In: Computer Science

Nexium is a drug that can be used to reduce the acid produced by the body...

Nexium is a drug that can be used to reduce the acid produced by the body and heal damage to the esophagus due
to acid reflux. The manufacturer of Nexium in advertising states that more than 94% of patients taking Nexium
are healed within 8 weeks. In clinical trials, 96% out of 300 patients suffering from acid reflux disease were
healed after 8 weeks. Run a hypothesis test at the α = 0.01 and α = 0.10 significance level to test whether the
advertising is true.
H0: _____ = 0.94 [fill in the blanks]
Ha: _____ _____ 0.94 [fill in the blanks]
a. Follow our procedure on page 2 of our Unit 3 Day 1 notes to bracket the claim, etc.
b. Which word, phrase or symbol in the claim determines the inequality in the alternative hypothesis:
_________________
c. Which word, phrase or information (or lack of information) in the problem tells us that this problem
involves a test for the proportion, and not a mean? _______________________________________________
d. Fill in the hypothesis.
e. Explain why the number “0.96” does not appear in the hypothesis: _______________________
_____________________________________________________________________________________
f. The p-value is 0.072. Find the outcome of the test and write a plain English interpretation of the outcome
using both α = 0.05 and α = 0.10.

In: Statistics and Probability

Nexium is a drug that can be used to reduce the acid produced by the body...

Nexium is a drug that can be used to reduce the acid produced by the body and heal damage to the esophagus due
to acid reflux. The manufacturer of Nexium in advertising states that more than 94% of patients taking Nexium
are healed within 8 weeks. In clinical trials, 96% out of 300 patients suffering from acid reflux disease were
healed after 8 weeks. Run a hypothesis test at the α = 0.01 and α = 0.10 significance level to test whether the
advertising is true.
H0: _____ = 0.94 [fill in the blanks]
Ha: _____ _____ 0.94 [fill in the blanks]
a. Follow our procedure on page 2 of our Unit 3 Day 1 notes to bracket the claim, etc.
b. Which word, phrase or symbol in the claim determines the inequality in the alternative hypothesis:
_________________
c. Which word, phrase or information (or lack of information) in the problem tells us that this problem
involves a test for the proportion, and not a mean? _______________________________________________
d. Fill in the hypothesis.
e. Explain why the number “0.96” does not appear in the hypothesis: _______________________
_____________________________________________________________________________________
f. The p-value is 0.072. Find the outcome of the test and write a plain English interpretation of the outcome
using both α = 0.05 and α = 0.10.

In: Statistics and Probability

JAVA RECURSION public void recMethod(int[] array, int start, int end) { if(start < end) { print...

JAVA RECURSION
public void recMethod(int[] array, int start, int end) {

   if(start < end) {
      print the array

      double the value in the array at position start

      recMethod(array, start+1, end)

      print the array

   } else {
      print "done"
   }
}

Assume the method is invoked with array = [3, 4, 6, 7, 8, 10, 4], start = 2, and end = 5

1.How many times is the array printed before the word "done" is printed?

2.How many times is the array printed after the word "done" is printed?

3.Which of the following is true?

a.The contents printed in the line directly before the "done" are the same as the contents printed in the line directly after the "done."

b.There is nothing printed out after the "done."

c.The contents printed in the line directly before the "done" are different from the contents printed in the line directly after the "done."

4.Which of the following is true?

a.All array print outs after the "done" show the same contents as each other.

b.The array print outs after the "done" are not all the same.

c.There are no array print outs after the "done."

In: Computer Science

The financial year end of Diary Manufacturing Limited is 31 December. At 31 December 2012, the...

The financial year end of Diary Manufacturing Limited is 31 December. At 31 December 2012, the following balances are available:

Item

Land and building at cost

286000

Plant and machinery at cost

210000

Accumulated depreciation on plant and machinery

46000

Purchase of raw material

260200

Sales

635000

Factory rates expenses

6000

Factory heats and light

13000

Account receivables

74400

Account payable

61800

Wages

126000

Direct expenses

18200

Selling expenses

22000

Administration and general expenses

46000

Bank

49000

General reserve

60000

Retained profit

36000

Inventory 1st January 2012: Raw material

                                               Finished goods

40000

76000

Dividends paid: Preference shares

                         Ordinary shares

1680

40000

Notes

  1. The inventory on 31 December 2012: Raw Material €44000, finished goods €35000.
  2. Salaries include € 13400 for director fees.
  3. The wages include €31400 for supervision
  4. Depreciation is to be charged at 10% on cost of plant and machinery

Required: Prepare the manufacturing accounts of the Diary Limited

Note : Answers should be in Word Version Format

if you cannot solve it on a laptop then you give it to another one to Solve it by Word

In: Accounting

An inappropriate antibody response against cells is the cause of [ ------- ] If a patient...

An inappropriate antibody response against cells is the cause of [ ------- ]

If a patient with an immunodeficiency does not have enough circulating antibody, a doctor may choose to treat the problem with [ ------- ]

A B or T cell recognized the presence of a pathogen through an antigen-specific receptor, while an innate immune cell recognized the presence of a pathogen through a [ ------- ]

In order to become fully activated, a T cell requires [ ------- ] through CD28

Activated dendritic cells provide a [ ------- ] to T cells in the form of cytokines.

Another word for antibody is [ ------- ]

In the germinal center, as activated B cells are improving antibody affinity, they also undergo [ ------- ] from IgM to other isotypes.

A [ ------- ] can be caused by a disease or other environmental condition that interferes with immune system function.

Blank word options:

["type III hypersensitivity, "type I hypersensitivity", "type II hypersensitivity", "clonal expansion", "self-tolerance", "pattern recognition receptor", "immune complex", "costimulation", "primary immunodeficiency", "adjuvant", "hypogammaglobulinemia", "mucosa", "negative selection", "opsonization", "histamine", "secondary immunodeficiency", "allergy", "plasma cell", "herd immunity", "third signal", "positive selection", "type IV hypersensitivity", "intravenous immunoglobulin", "affinity maturation", "immunoglobulin", "class switching", "hygiene hypothesis"]

In: Biology