Trace Each of the following programs on the paper provided.
Program 1
User enters “cat”, “dog”, “chair”, “quit”
|
Line Number |
||||
it doesn't have to be this specific table...
In: Computer Science
Using Java:
Write a program that uses hash tables and reads in a string from the command line and a dictionary of words from standard input, and checks whether it is a "good" password. Here, assume "good" means that it (i) is at least 8 characters long, (ii) is not a word in the dictionary, (iii) is not a word in the dictionary followed by a digit 0-9 (e.g., hello5), (iv) is not two words separated by a digit (e.g., hello2world).
In: Computer Science
Answer the following questions fully and submit to
this DropBox.
1. How did Disney create its uniqueness in the Media and
Entertainment Industry? (200 words minimum)? Please include a word
count of your answer.
2. How is the media and entertainment industry being disrupted? In
terms of corporate strategy, how are firms in the industry
responding? (150 words minimum)? Please include a word count of
your answer.
In: Operations Management
Answer the following question listed below. This assignment has a 150 minimum word count. You will also be required to reply to 1 response (100 minimum word count for each response) and use at least one credible reference.
1. List 3 facts about small businesses.
2. What are advantages in starting a small business?
3. Which Entrepreneurial Resource would you make use of?
In: Economics

1. Which of the following promotional elements has the potential to yield the greatest influence over a potential customer's decision to purchase a burrito from Chipotle?
Word-of-mouth
Advertising
Publicity
2. Which of the following promotional elements provides the most control for a marketing manager?
Advertising
Word-of-mouth
Publicity
3. In preparation for a new store opening within a neighborhood, if Chipotle were to offer free burritos to individuals who are influential within multiple large social groups or organizations within the related neighborhood with the objective of generating positive word-of-mouth, then this approach would be an example of a(an)
seeding strategy.
push strategy.
Internal marketing strategy.
4. Generally, the promotion mix strategy of a company should be designed so that its elements ____ each other.
complement
interfere with
confuse
don't influence
In: Other
Recall that you took samples of words from the
population of words in the Gettysburg Address, for which the
average length of a word is 4.295 letters.
1.Is the number 4.295 a parameter or a
statistic?
2.When you first selected your sample of 10 (circled)
words, what was the variable that you recorded about the words? Was
the variable categorical or quantitative?
3.You calculated the average (mean) number of letters per
word in your sample of ten circled words. Is this value a parameter
or a statistic?
4.Students in our class produced a graph on the board that
displayed the sample mean word lengths. What aspect of the graph
indicated that the sampling method was biased?
5.Would selecting words by closing your eyes and pointing
at the page 10 times produce an unbiased sampling method? Explain
briefly.
In: Statistics and Probability
1. Prepare a list of 10 interview questions to select a candidate for the position “marketing manager”. Please ensure that two behavioural, two situational, two job-knowledge, and two worker-requirements questions are included in this list of ten questions.
2. "A well-thought-out orientation program is essential for all new employees, whether they have experience or not." Explain why you agree or disagree with this statement. (word requirement: minimum 200 words)
3. Explain how you would conduct a job analysis. (word requirement: minimum 200 words)
4. Briefly describe each of the following possible types of interviews: unstructured panel interviews; structured sequential interviews; job-related structured interviews. (word requirement: minimum 200 words)
In: Operations Management
Python:
The goal is to reverse the order of month and date.
# For example,
# output: I was born on 24 June
print(reverse("I was born on June 24"))
# output: I was born on June two
print(reverse("I was born on June two"))
#output: I was born on 1 January, and today is 9 Feb.
print(reverse("I was born on January 1, and today is Feb 9."))
My code (so far, works for first two not the last):
def reverseOrder(string):
newString = []
count = 0
for word in string.split():
count = count+1
if word.isdigit():
count = count+1
newString.append(word)
newString[count-3], newString[count-2] = newString[count-2],
newString[count-3]
else:
newString.append(word)
return ' '.join(newString)
In: Computer Science
def main():
phrase = input('Enter a phrase: ') # take a phrase from user
acronym = '' # initialize empty acronym
for word in phrase.split(): # for each word in phrase
acronym += word[0].upper() # add uppercase version of first letter
to acronym
print('Acronym for ' + phrase + ' is ' + acronym) # print
results
main()
The program should then open the input file, treat whatever is on each line as a phrase and make its acronym using the function you wrote. It should print the acronyms, one per line to the output file. Assume that the input file will be already present in your default Python folder. The output file will be expected to get saved to the same folder. See below for an example input file input.txt and its corresponding output file output.txt that the program should generate.
Input: personal computer
Output:PC
In: Computer Science
In: Computer Science