Questions
500-750 word essay 1) Pick a company and assess the effectiveness of its response to the...

500-750 word essay

1) Pick a company and assess the effectiveness of its response to the current pandemic (hint: use relevant concepts from business policy and strategy course to make your argument)

In: Operations Management

2. Write a Regular expression that matches words, where a word is a series of ASCII...

2. Write a Regular expression that matches words, where a word is a series of ASCII alphabetic characters. Match both upper- and lowercase.

Note: Enter man grep to read about the options of grep.
Answer:

In: Computer Science

1 Introduction You will write a program to find the top k most repeated words in...

1 Introduction
You will write a program to find the top k most repeated words in a file, where k will be an input integer provided by the user. It is preferred, but not necessary, that your algorithm is as efficient as possible, both in time to process the input as well as optimizing memory management.
2 Input
The input is one text file, with at most 1000 different words, separated by spaces or punctuation symbols. Repeated spaces should be considered a sone space. Youcanassumethatwordswillbeatmost100characters long. The file may also contain number that you can ignore. Example of input and result file:
input.txt -----------------------------------------------------------The Hungry, hungry caterpillar a Eric Williams. Yu Xu Z ABC abc hand-made Abc Denon xyz 123456 the end -----------------------------------------------------------
3 Program and input specification
The main program should be called ”topkword” (exactly like this, in lower case, avoid other names). Call syntax (assuming your main program is topkword.py):
python3 topkword "input=input.txt;k=2;output=topwords.txt"
A word is regular expression of letters: letter+, where letters can be lower or upper case. Therefore, numbers and strings mixing letters + numbers can be ignored. Noticethatwordscanbefollowedbypunctuationsignsandthatsomeofthemcanbecapitalized. This should not interfere with your results: a capitalized
word is the same as a non-capitalized word for the purposes of this homework. Uppercase letters can be anywhere in the word, for ex.: ”Hungry”, ”hungry” and ”hUngry” should be counted as the same word. Punctuation can also be ignored. Notice that the file name will not necessarily be the same every time. Therefore ,your program will have to parse the input file name. The output should be sent to the output file exactly in the format below with each word and its frequency, one per line. Avoid changing the output format or adding any other messages since this will prevent automated testing. Output example with k = 2:
abc 3 hungry 2
4 Requirements • Programming language: Python, version 3 (any) meeting the requirements below. • Recursive functions are required. It is unacceptable to have loops (while/for) to process the list(s). While loops are acceptable only to read the input file, but recursive functions are encouraged. • Lists (dynamically sized) are required to store the list of unique words. A program using arrays to store words will receive a low grade. However, (small) arrays for input parameters or other auxiliary variables are acceptable. • The output should always be in lowercase, regardless of how the words appear in the text. Therefore, your program should internally convert words to lower case. • Correctness is the most important requirement: TEST your program with many expressions. Your program should not crash or produce exceptions. • The list needs to be passed as function argument and/or function return value, but cannot be a global variable. The program must be prepared to handle zeroes or simple errors like spaces or missing numbers extra credit for developing both forward and backward recursion starting from either side of the list

In: Computer Science

Question Prompt (1 of 1) You are running a classroom and suspect that some of your...

Question Prompt (1 of 1)

You are running a classroom and suspect that some of your students are cheating by sharing answers as single words hidden in 2D grids of letters.

A particular grid contains at most one word. The word may start anywhere in the grid, and consecutive letters can be either below or to the right of the previous letter.

The input will consist of a word and a grid. Print the location of the word in the grid as a list of “row column” coordinates, each on its own line. If the word does not appear in the grid, just print “None”.

Example input:

  catnip

  c r c a r s
  a b i t n b
  t f n n t i
  x s i i p t

Example output

  0 2
  0 3
  1 3
  2 3
  3 3
  3 4

Clarifications:

  • The word will always appear in the grid exactly 0 or 1 times.

Starter code is provided for the following languages: Java, C, C++, JavaScript,

If you wish to use a different language, please write a solution
that reads from STDIN and writes to STDOUT. To obtain starter code,
change the language to one of the previously mentioned languages.

Public test 1

Input:

car

c r c r a c a b i t n b t f n n t i

Expected Output:

None

Public test 2

Input:

car

c r c c a r a b i t n b t f n n t i

Expected Output:

0 3 0 4 0 5

Public test 3

Input:

carsick c r c a r s a b i t n b t f n n t i x s c a t n x s d d e a s q w x s p

Expected Output:

None

Public test 4

Input:

catnap c r c a r s a b i t n b t f n n t i x s c a t n x s d d e a s q w x s p

Expected Output:

3 2 3 3 3 4 3 5 4 5 5 5

Public test 5

Input:

catnip c r c a r s a b i t n b t f n n t i x s i i p t

Expected Output:

0 2 0 3 1 3 2 3 3 3 3 4

In: Computer Science

4.9 Branching Practice - Python Exercise #Write the code for the following # Exercise 1 #...

4.9 Branching Practice - Python Exercise

#Write the code for the following
# Exercise 1
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert the user entry to an integer and assign it to a variable
# Condition: user entry is greater than zero
# Action: display the following word on screen: positive

# Exercise 2
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert user entry to an integer and assign it to a variable
# Condition: user entry is greater than 99
# Action: display the following word on screen: hundreds

# Exercise 3
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert user entry to an integer and assign it to a variable
# Condition: user entry is less than zero
# Action: display the following word on screen: negative

# Exercise 4
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert the user entry to an integer and assign it to a variable
# Condition: user entry is less than zero
# Action: display the following word on screen: negative
# All other conditions
# Action: display the following word on screen: positive

# Exercise 5
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert user entry to an integer and assign it to a variable
# Condition: user entry is greater than 99
# Action: display the following word on screen: hundreds
# All other conditions
# Action: display the following words on screen: low number

# Exercise 6
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert user entry to an integer and assign it to a variable
# Condition: user entry is equal to 2001
# Action: display the following words on screen: Twin Towers
# Condition: user entry is equal to 2008
# Action: display the following words on screen: Great Recession
# Condition: user entry is equal to 2017
# Action: display the following words on screen: Hurricane Maria
# All other conditions
# Action: display the words No Disasters on screen

# Exercise 7
# Ask user for a number using an input statement (no prompt) & assign the input to a variable
# Convert user entry to an integer and assign it to a variable
# Condition: user entry is equal to 2001
# Action: display the following phrase on screen using a combination of the user entry and exact text: 2001 : Twin Towers
# Condition: user entry is equal to 2008
# Action: display the following phrase on screen using a combination of the user entry and exact text: 2008 : Great Recession
# Condition: user entry is equal to 2017
# Action: display the following phrase on screen using a combination of the user entry and exact text: 2017 : Hurricane Maria
# All other conditions
# Action: display the following phrase on screen using exact text only: No disasters!

In: Computer Science

Python 3 Program Program 4 should first tell users that this is a word analysis software....

Python 3 Program

Program 4 should first tell users that this is a word analysis software. For any user-given text file, the program will read, analyze, and write each word with the line numbers where the word is found in an output file. A word may appear in multiple lines. A word shows more than once at a line, the line number will be only recorded one time.

Ask a user to enter the name of a text file. Using try/except for invalid user input. Then the program reads the contents of the text file and create a dictionary in which the key-value pairs are described as follows:

Key. The key are the individual words found in the file.

Value. Each value is a list that contains the line numbers in the file where the word (the key) is found. Be aware that a list may have only one element.

Once the dictionary has been built, the program should create another text file for otuput, named “words_index.txt”. Next, write the contents of the dictionary to the file as an alphabetical listing of the words that are stored as keys in the dictionary (sorting the keys), along with the line numbers where the words appear in the original file. Please see the sample file for your reference.

Looking to seeing everyone to submit a well-done program! Here are some tips:

Documents/Comments of your program (Never more)

Testing your program by the given two files, Kennedy.txt . The output file of the Kennedy_index.txt, Kennedy_index_B.txt, Kennedy_index_C.txt, for input file “kennedy.txt”

Remember the output file name of your program is words_index.txt.

For this program, not running one (syntax error) will receive NO point.

Example of original text- Kennedy.txt

We observe today not a victory
of party but a celebration
of freedom symbolizing an end
as well as a beginning
signifying renewal as well
as change

New text example - Kennedy_index.txt

Text File to be analyzed: Kennedy.txt

We: 1
a: 1, 2, 4
an: 3
as: 4, 5, 6
beginning: 4
but: 2
celebration: 2
change: 6
end: 3
freedom: 3
not: 1
observe: 1
of: 2, 3
party: 2
renewal: 5
signifying: 5
symbolizing: 3
today: 1
victory: 1
well: 4, 5

example- Kenndy_index_B.txt

Text File to be analyzed: kennedy.txt

          We : 1
           a : 1, 2, 4
          an : 3
          as : 4, 5, 6
   beginning : 4
         but : 2
 celebration : 2
      change : 6
         end : 3
     freedom : 3
         not : 1
     observe : 1
          of : 2, 3
       party : 2
     renewal : 5
  signifying : 5
 symbolizing : 3
       today : 1
     victory : 1
        well : 4, 5

example- Kenndy_index_C.txt

Text File to be analyzed: kennedy.txt

We           : 1
a            : 1, 2, 4
an           : 3
as           : 4, 5, 6
beginning    : 4
but          : 2
celebration  : 2
change       : 6
end          : 3
freedom      : 3
not          : 1
observe      : 1
of           : 2, 3
party        : 2
renewal      : 5
signifying   : 5
symbolizing  : 3
today        : 1
victory      : 1
well         : 4, 5

In: Computer Science

A minimum 300-word response to the statement that technological change results in greater unemployment. Also, note...

A minimum 300-word response to the statement that technological change results in greater unemployment. Also, note what is the most serious type of unemployment resulting from such change and what might be done to mitigate this kind of unemployment.

In: Economics

When dealing with any "prepaid," the company "owes" service and liabilities only have the word "payable"...

When dealing with any "prepaid," the company "owes" service and liabilities only have the word "payable" in the account. What are our thought s on this? Please answer in your own words. Do not use outside resources.

In: Accounting

In 300 words or more, define Industry Analysis and outline the role the global & domestic...

In 300 words or more, define Industry Analysis and outline the role the global & domestic economies, exchange rates; business cycles; industry analysis; the industry structure and performance; and the competitive strategies.

Please stick to the word limit

In: Finance

Write a 175- to 265-word response to the following: Provide an example of how organizational culture...

Write a 175- to 265-word response to the following:

  • Provide an example of how organizational culture impacts organizational structure in health care.
  • What would an ideal organizational culture look like for a health care organization?

In: Nursing