Explain the logic behind the statement that “the pen is mightier than the keyboard.” Be sure...

Explain the logic behind the statement that “the pen is mightier than the keyboard.” Be sure to include concepts related to long-term memory in your response.

In: Psychology

Java Programming: Using textI/O models, create a Write file, Append file, and a Read file. Write...

Java Programming:

Using textI/O models, create a Write file, Append file, and a Read file. Write 10 fahrenheit temperature to a text file, append 5 more temperatures, then read these numbers calculating, in a method, the Celsius temperature, and printing the results via another method.

In: Computer Science

Construct an energy level diagram for a doubly-ionized Lithium atom (z=3, 1 electron). What are the...

Construct an energy level diagram for a doubly-ionized Lithium atom (z=3, 1 electron). What are the possible frequencies of light emitted for the electron moving around between the first three energy levels? (there are three answers)

In: Physics

A billiard ball of mass m = 0.25 kg strikes the cushion of a billiard table...

A billiard ball of mass m = 0.25 kg strikes the cushion of a billiard table at ?1 = 50

In: Physics

5. Using terms a layperson would understand, state the differences between    Congenital and Genetic disorders...

5. Using terms a layperson would understand, state the differences between

   Congenital and Genetic disorders and give an example of each.

6. What is the difference between an organic disorder and an idiopathic disorder?

7. What is the difference between an iatrogenic illness and a nosocomial

   infection?

8.   Describe the primary characteristics of these types of fractures:

  1. comminuted
  2. compression
  3. pathologic.

9.   Describe the difference between osteopenia and osteoporosis.

10. Describe the type of arthritis that is an autoimmune disorder rather than one associated with aging.

11. Describe the two types of bone marrow transplant, allogenic and autologous, in terms a patient will understand.

12. Mrs. Yasameen has a compression fracture of her spine. Her doctor has decided to do a percutaneous vertebroplasty.

Explain this procedure in terms that Mrs. Valdez and her family will understand.

13. Hilda has a job that involves hours of computer work every day. Recently she has complained of pain and a burning sensation in her fingers that was diagnosed as carpal tunnel syndrome.

Describe what happens within the wrist to cause carpal tunnel syndrome.

14. Jennifer is the star of the track team; however, recently she has been experiencing pain when she runs. Dr. Vasquez performed several tests and established that she is suffering from a shin splint.

Use terms Jennifer would understand to describe this condition.

In: Anatomy and Physiology

4. Two firms face a market demand of p = 90 – Q, each firm with...

4. Two firms face a market demand of p = 90 – Q, each firm with a constant marginal cost of $15 per unit.

a. What are the Cournot equilibrium q1, q2, price and profits for each firm?

b. What are the Stackelberg equilibrium q1, q2, price and profits for each firm, assuming firm 1 moves first?

c. Compare the quantities, price and profits between the two models.

In: Economics

For this lab you will write a Java program that plays a simple Guess The Word...

For this lab you will write a Java program that plays a simple Guess The Word game. The program will prompt the user to enter the name of a file containing a list of words. These words mustbe stored in an ArrayList, and the program will not know how many words are in the file before it starts putting them in the list. When all of the words have been read from the file, the program randomly chooses one word from the list to be the target of the game. The user is then allowed to guess characters one at a time. The program checks to see if the user has previously guessed that character and if it has been previously guessed the program forces the user to guess another character. Otherwise it checks the word to see if that character is part of the target word. If it is, it reveals all of the positions with that target word. The program then asks the user to guess the target, keeping count of the number of guesses. When the user finally guesses the correct word, the program indicates how many guesses it took the user to get it right.

For this assignment you must start with the following "skeleton" of Java code. Import this into your Eclipse workspace and fill in the methods as directed. In addition, for this assignment you MUST add at least one extra method beyond the methods defined in the skeleton. This must be a method that does something useful - if you are stuck for an idea for a method, get the program working first and then see if there is some part of your main method that you can break out to be its own function or procedure instead.

Feel free to add any additional methods you find useful, but for all of the methods you add you must also add comments indicating what they do following the form of the rest of the comments in the code.

NOTE: If the file that the user enters for the word list does not exist or if it is an empty file with no words in it, your program should print the Goodbye! message and exit gracefully without crashing.

/**
 * Your description here
 * @author ENTER YOUR NAME HERE
 * @version ENTER DATE HERE
 *
 */
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;

public class WordGuessing {

    /**
     * Takes a filename as input. Reads a list of words from the file into a
     * list and returns the list. Ensures that all of the words in the list are
     * in UPPERCASE (i.e. transforms lowercase letters to uppercase before
     * adding them to the list). Assumes that the file will be correctly
     * formatted with one word per line (though there may be blank lines with
     * no words on them). If the file cannot be read prints the
     * error message "ERROR: File fname not found!" where "fname" is the name of
     * the file and returns an empty list.  Note that the order of the words in the
     * list must be the same as the order of the words in the file to pass the
     * test cases.
     *
     * @param fname
     *            the name of the file to read words from
     * @return a list of words read from the file in all uppercase letters.
     */
    public static List<String> readWords(String fname) {
        List<String> words = new ArrayList<String>();
        // TODO - complete this function

        // TODO - the following line is only here to allow this program to
        //  compile.  Replace it and remove this comment when you complete
        //  this method.
        return words;
    }

    /**
     * Takes a Random object and a list of strings and returns a random String
     * from the list. Note that this method must not change the list.  The list
     * is guaranteed to have one or more elements in it.
     *
     * @param rnd
     *            Random number generator object
     * @param inList
     *            list of strings to choose from
     * @return an element from a random position in the list
     */
    public static String getRandomWord(Random rnd, List<String> inList) {
        // TODO - complete this function

        // TODO - the following line is only here to allow this program to
        //  compile.  Replace it and remove this comment when you complete
        //  this method.
        return null;
    }

    /**
     * Given a String, returns a StringBuilder object that is the same length
     * but is only '*' characters. For example, given the String DOG as input
     * returns a StringBuilder object containing "***".
     *
     * @param inWord
     *            The String to be starred
     * @return a StringBuilder with the same length as inWord, but all stars
     */
    public static StringBuilder starWord(String inWord) {
        // TODO - complete this function

        // TODO - the following line is only here to allow this program to
        //  compile.  Replace it and remove this comment when you complete
        //  this method.
        return null;
    }

    /**
     * Prompts the user to enter a single character. If the user enters a blank
     * line or more than one character, give an error message as given in the
     * assignment and prompt them again. When the user enters a single
     * character, return the uppercase value of the character they typed.
     *
     * @param inScanner
     *            A scanner to take user input from
     * @return the uppercase value of the character typed by the user.
     */
    public static char getCharacterGuess(Scanner inScanner) {
        // TODO - complete this function

        // TODO - the following line is only here to allow this program to
        //  compile.  Replace it and remove this comment when you complete
        //  this method.
        return 0;
    }

    /**
     * Count the number of times the character ch appears in the String word.
     *
     * @param ch
     *            character to count.
     * @param word
     *            String to examine for the character ch.
     * @return a count of the number of times the character ch appears in the
     *         String word
     */
    public static int charCount(char ch, String word) {
        // TODO - complete this function

        // TODO - the following line is only here to allow this program to
        //  compile.  Replace it and remove this comment when you complete
        //  this method.
        return 0;
    }

    /**
     * Modify the StringBuilder object starWord everywhere the char ch appears
     * in the String word. For example, if ch is 'G', word is "GEOLOGY", and
     * starWord is "**O*O*Y", then this method modifies starWord to be
     * "G*O*OGY".  Your code should assume that word and starWord are
     * the same length.
     *
     * @param ch
     *            the character to look for in word.
     * @param word
     *            the String containing the full word.
     * @param starWord
     *            the StringBuilder containing the full word masked by stars.
     */
    public static void modifyStarWord(char ch, String word,
            StringBuilder starWord) {
        // TODO - complete this function

    }

    public static void main(String[] args) {
        // TODO - complete this function

    }

}

You can use the following word list for your program, but the list below is the one that the test cases will use. Create a new text file in your project directory and paste the following words into it. Note that your program must be able to deal correctly with blank lines (i.e. ignore them when it reads the file and do not add empty strings to the word list).

MIGHTY
crimes
FLIGHT
FRIGHT
Grimes

PLACES
TRACES

plates
Fisher
fishes

WISHES
dishes

When your program runs, you must be able to produce the following transcript. Note the behavior that the transcript produces when the player tries to guess a character they have previously guessed, when they enter blank lines for the character or the word guess, and when they enter anything but a 'Y' or 'N' (upper or lowercase) for the rematch question.

Enter a random seed: 33
Enter a filename for your wordlist: words.txt
Read 12 words from the file.

The word to guess is: ******
Previous characters guessed: []
Enter a character to guess: f
The character F occurs in 1 positions.

The word to guess is: F*****
Enter your guess for the word: flames
That is not the word.

The word to guess is: F*****
Previous characters guessed: [F]
Enter a character to guess: i
The character I occurs in 1 positions.

The word to guess is: F*I***
Enter your guess for the word: flight
That is not the word.

The word to guess is: F*I***
Previous characters guessed: [F, I]
Enter a character to guess: tjkl
Enter only a single character!
Enter a character to guess: 
Enter only a single character!
Enter a character to guess: t
The character T occurs in 1 positions.

The word to guess is: F*I**T
Enter your guess for the word: 
That is not the word.

The word to guess is: F*I**T
Previous characters guessed: [F, I, T]
Enter a character to guess: o
The character O occurs in 0 positions.

The word to guess is: F*I**T
Enter your guess for the word: flitter
That is not the word.

The word to guess is: F*I**T
Previous characters guessed: [F, I, T, O]
Enter a character to guess: G
The character G occurs in 1 positions.

The word to guess is: F*IG*T
Enter your guess for the word: fight
That is not the word.

The word to guess is: F*IG*T
Previous characters guessed: [F, I, T, O, G]
Enter a character to guess: h
The character H occurs in 1 positions.

The word to guess is: F*IGHT
Enter your guess for the word: Fright
Yes! FRIGHT is the correct word!
That took you 6 guesses.
Would you like a rematch [Y/N]?: jsdf
Please enter only a Y or an N.
Would you like a rematch [Y/N]?: 
Please enter only a Y or an N.
Would you like a rematch [Y/N]?: yes
Please enter only a Y or an N.
Would you like a rematch [Y/N]?: no
Please enter only a Y or an N.
Would you like a rematch [Y/N]?: n
Goodbye!

Another run of the same program should be able to produce the following transcript:

Enter a random seed: 2048
Enter a filename for your wordlist: words.txt
Read 12 words from the file.

The word to guess is: ******
Previous characters guessed: []
Enter a character to guess: s
The character S occurs in 1 positions.

The word to guess is: *****S
Enter your guess for the word: slimes
That is not the word.

The word to guess is: *****S
Previous characters guessed: [S]
Enter a character to guess: r
The character R occurs in 1 positions.

The word to guess is: *R***S
Enter your guess for the word: grimes
That is not the word.

The word to guess is: *R***S
Previous characters guessed: [S, R]
Enter a character to guess: c
The character C occurs in 1 positions.

The word to guess is: CR***S
Enter your guess for the word: crimes
Yes! CRIMES is the correct word!
That took you 3 guesses.
Would you like a rematch [Y/N]?: y

The word to guess is: ******
Previous characters guessed: []
Enter a character to guess: s
The character S occurs in 2 positions.

The word to guess is: **S**S
Enter your guess for the word: dishes
That is not the word.

The word to guess is: **S**S
Previous characters guessed: [S]
Enter a character to guess: f
The character F occurs in 1 positions.

The word to guess is: F*S**S
Enter your guess for the word: fishes
Yes! FISHES is the correct word!
That took you 2 guesses.
Would you like a rematch [Y/N]?: y

The word to guess is: ******
Previous characters guessed: []
Enter a character to guess: s
The character S occurs in 1 positions.

The word to guess is: *****S
Enter your guess for the word: slimes
That is not the word.

The word to guess is: *****S
Previous characters guessed: [S]
Enter a character to guess: r
The character R occurs in 1 positions.

The word to guess is: *R***S
Enter your guess for the word: drimes
That is not the word.

The word to guess is: *R***S
Previous characters guessed: [S, R]
Enter a character to guess: g
The character G occurs in 1 positions.

The word to guess is: GR***S
Enter your guess for the word: grimes
Yes! GRIMES is the correct word!
That took you 3 guesses.
Would you like a rematch [Y/N]?: n
Goodbye!

In: Computer Science

what effect did Sutton's discovery that chromosomes come in pairs have on his life?

what effect did Sutton's discovery that chromosomes come in pairs have on his life?

In: Biology

Sulfur and fluorine react to form sulfur hexafluoride: S(s)+3F2(g)→SF6(g) Part A If 50.0 g S is...

Sulfur and fluorine react to form sulfur hexafluoride:

S(s)+3F2(g)→SF6(g)

Part A

If 50.0 g S is allowed to react as completely as possible with 105.0 g F2(g), what mass of the excess reactant is left?

If 50.0   is allowed to react as completely as possible with 105.0  , what mass of the excess reactant is left?

36.3 g F2
20.5 gS
7.5 gF2
15.0 g S

In: Chemistry

Explain how naproxen sodium and ibuprofen are structurally similar.

Explain how naproxen sodium and ibuprofen are structurally similar.

In: Biology

For the t test , one uses ----------------instead of σ a. n b. s c. χ²...

For the t test , one uses ----------------instead of σ

a. n

b. s

c. χ²

d. t

Using the Z table, find the critical value for

a) α  = .05, two-tailed test

b) α = .01, two tailed test

c) α = .10, two-tailed test

In: Math

Which of the following is NOTa good reason for a government to intervene in a market...

Which of the following is NOTa good reason for a government to intervene in a market economy?a.Protecting property rights b.Correcting a market failure due to externalities c.Promoting the equality of income in the society through re-distribution and welfare policies d.Providing consumption goods for the citizens e.Correcting a market failure due to monopolies market power f.All of the above items are good reasons for the government to intervene in a market economy.

In: Economics

5. the individual probabilities are all between 0 and 1 0 ≤ P (event) ≤ 1  ...

5. the individual probabilities are all between 0 and 1 0 ≤ P (event) ≤ 1                                                                    o Right   or o Wrong

6. Expected opportunity loss (EOL) is the cost of not picking the best solution.                                                        o Right   or o Wrong

7. Continuous Probability Distribution is A probability distribution with a continuous random variable.              o Right   or o Wrong

8. The Break-Even Point (BEP) is the price point at which the sales revenue is equal to the costs,

generating zero profit.                                                                                                                                                         o Right   or o Wrong

9. Recurring variations over time may indicate the need for seasonal adjustments in the trend line                   o Right   or o Wrong

10. Statement of Cash flow = The financial position of the company                                                                         o Right   or o Wrong   

11. Deterministic Model A model in which all values used in the model are known with complete certainty.    o Right   or o Wrong

12. Models may be the only way to solve large or complex problems in a timely fashion                                       o Right   or o Wrong

13. Maximax An optimistic decision-making criterion. This selects the alternative with the highest possible return. o Right   or o

Wrong

14. Opportunity Loss The amount you would lose by not picking the best alternative.                                                    o Right   or o Wrong

15. State of Nature An outcome or occurrence over which the decision maker has little or no control.                        o Right   or o Wrong

16. QA aim to represent a given reality in terms of a numerical value.                                                                                o Right   or o Wrong

In: Math

Expenses are costs incurred by an organization in the process of earning revenue during a given...

Expenses are costs incurred by an organization in the process of earning revenue during a given time period. Expense accounts have a direct impact on the profitability of an organization.

List three expense accounts related to payroll. Describe when you would expect the account to be cleared to zero. Explain the methods you could use to reconcile these accounts.

In: Accounting

write about 500 words which describes a violating social norm( eg. violating elevator/ bus / restaurant...

write about 500 words which describes a violating social norm( eg. violating elevator/ bus / restaurant etiquette, wearing clothes that is " inappropriate" for the setting). explain your experience and other people's reactions.

In: Psychology