Questions
Use this constant dictionary as a global variable: tile_dict = { 'A': 1, 'B': 3, 'C':...

Use this constant dictionary as a global variable:

tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }

Implement function scrabblePoints(word) that returns the calculated points for the word based on the tile_dict above. The word parameter is a string. This function takes the string and evaluates the points based on each letter in the word (points per letter is set by the global dictionary). P or p is worth the same points. No points calculated for anything that is not A-Z or a-z.

[You may use upper() and isalpha() ONLY and no other method or built-in function]

Examples:

word = “PYTHON”

print(scrabblePoints(word))

returns:

14

word = “hello!!”

print(scrabblePoints(word))

returns:

8

word = “@#$=!!”

print(scrabblePoints(word))

returns:

0

Note: This function relies on scrabblePoints. Function you solved in Question 2.

Implement function declareWinner(player1Word = “skip”, player2Word = “skip”) that returns either “Player 1 Wins!”, “Player 2 Wins!”, “It’s a Tie”, “Player 1 Skipped Round”, “Player 2 Skipped Round”, “Both Players Skipped Round”. The player1Word and player2Word parameters are both type string. Assume input is always valid. This function should call on the function scrabblePoints to earn credit.

[No built-in function or method needed]

Examples:

player1Word = “PYTHON”

player2Word = “Pizza”

     print(declareWinner(player1Word, player2Word))

     returns:           

     Player 2 Wins!

              print(declareWinner(player1Word))

              returns:           

              Player 2 Skipped Round

Please do the second function only. I just needed to add the first function for reference

In: Computer Science

Please discuss the following question in your own word 300 word count on the following question....

Please discuss the following question in your own word 300 word count on the following question.

Continuous process improvement is a significant step in Kotter's last step "make it stick". The last step defines the cultural change for the organization and is marked by employee buy-in, leadership's ability to motivate staff towards change, and redefining the organization's position on the "process change". As a future health care leader you create the vision and point your staff to the path towards process change. What motivational techniques might you use to encourage your staff to embrace change and engage in the ongoing process of process improvement?

In: Nursing

in basic c++ program please!! Write a word search and word count program. Assign the following...

in basic c++ program please!!

Write a word search and word count program.

  1. Assign the following text to a string constant.

For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. For God did not send his Son into the world to condemn the world, but to save the world through him.Whoever believes in him is not condemned, but whoever does not believe stands condemned already because they have not believed in the name of God’s one and only Son. This is the verdict: Light has come into the world, but people loved darkness instead of light because their deeds were evil. Everyone who does evil hates the light, and will not come into the light for fear that their deeds will be exposed. 21 But whoever lives by the truth comes into the light, so that it may be seen plainly that what they have done has been done in the sight of God.

  1. Prompt the user to enter a word or phrase
  2. Search the string given by the user from the text above and inform how many times the word/phrase was found in the text.

(Hint: You need to use while loop, .find and .length function from string library. Also, you will need to use string::npos.)

  1. Your SOURCE CODE (.cpp file ONLY, such as main.cpp, filename.cpp. It is NOT .sln or any other extensions)
  2. Search for the following (ALL strings are CASE-SENSITIVE!)
    1. God
    2. the world
    3. believe
    4. Jesus
    5. only Son
    6. life

  

In: Computer Science

3. Microsoft’s Word program enjoys a 94% share of the word processing market, which is considered...

3. Microsoft’s Word program enjoys a 94% share of the word processing market, which is considered a monopoly. Are they taking advantage of any of the usual practices that we associate with monopolies (if so—what)? Do you think something should be done about their dominance, or is this a monopoly the world should accept?

In: Economics

I have a Python code that reads the text file, creates word list then calculates word...

I have a Python code that reads the text file, creates word list then calculates word frequency of each word. Please see below:

#Open file

f = open('example.txt', 'r')

#list created with all words

data=f.read().lower()

list1=data.split()

#empty dictionary

d={}

# Adding all elements of the list to a dictionary and assigning it's value as zero

for i in set(list1):

    d[i]=0

# checking and counting the values

for i in list1:

    for j in d.keys():

       if i==j:

          d[i]=d[i]+1

#Return all non-overlapping matches of pattern return pattern

print(d)

Question: How do I have my code only calculate specific list of words not the every single word in the file. for example: I only wanna know how many times (Apple, Banana, Orange, Watermelon, Blueberry) occurred throughout the text. Also apple/Apple/Apple! should count as same word. I appreciate your help. Please don't comment if you don't want to work on this question.

Here is the example text file: named example.txt

I Love apple, I don't like banana, but blueberry for me too. Apple, banana, orange, watermelon are my fav.
Banana can keep you full. Watermelon is good for summer. Banana!

In: Computer Science

(IN YOUR WORD) write a 400-word long, five paragraph effect of student cheating. (supported with a...

(IN YOUR WORD) write a 400-word long, five paragraph effect of student cheating.

(supported with a clear thesis statement and five well-developed paragraphs)

In: Psychology

Without plagiarism or copying word for word from the internet. Please write at least two strong...

Without plagiarism or copying word for word from the internet. Please write at least two strong paragraphs in response to the prompt below. Each paragraph should be 8-12 sentence for a total of 300-550 words. Use lots of examples.

Describe/explain/summarize a mental health issue that you are familiar with and one that you would like to know more about.

In: Psychology

How to make a random word generator from a list of array? string word ={ "RD","BL",...

How to make a random word generator from a list of array?

string word ={ "RD","BL", "YW", "GR","OR","VL","WH","BL" }

The output should produce 4 random words from the list like;

Expected output: RD YW OR BL

CODE USED: C++

In: Computer Science

find 15 words associated with Ear and eye and break them down according to the prefix/word...

find 15 words associated with Ear and eye and break them down according to the prefix/word root or combining form/ suffix and their meaning of the word.

In: Nursing

Assess the objectives of financial management and the role of different stakeholders in the financial strategy...

Assess the objectives of financial management and the role of different stakeholders in the financial strategy of a company.(Minimum Word count 700)

Take note of word count

In: Finance