Using the following words: Honor, Fear, Excitement, Commitment, Water, Food, Need.
Imagine you had to write an essay for three hours on your selected topic: Diverge: Pick a word from the list above. Breakdown your selected word into its various component parts in order to gain insight into the various ways/ideas you have for the word.
Brainstorm as many different ideas as you can. List 3 of your ideas Converge: Pick the same word. Think of a predetermined goal for that word. Fully describe your goal/idea and develop a plan for your goal. Submit a brief outline (only 1/2 to 1 page outline)
In: Nursing
Design and write a python program that reads a file of text and stores each unique word in some node of binary search tree while maintaining a count of the number appearance of that word. The word is stored only one time; if it appears more than once, the count is increased. The program then prints out 1) the number of distinct words stored un the tree, Function name: nword 2) the longest word in the input, function name: longest 3) the most frequent word in the input, function name: mostfreq 4) the first 10 words appearing in reverse sorted order : first10
In all three format Preorder Postorder Inorder
In: Computer Science
Java Question
I have a Queue containing String type taking in a text file with an iterator.
I need to use ArrayList and HashMap for freqHowMany to get a frequency table in descending order by the highest frequency words in the text. Any help would be much appreciated and thanks!
final Iterator input = new Scanner(System.in).useDelimiter("(?U)[^\\p{Alpha}0-9']+");
final Queue queueFinal = new CircularFifoQueue<>(wordsLast);
while (input.hasNext()) {
final String queueWord = input.next();
if (queueWord.length() > minimumLength) {
queueFinal.add(queueWord); // the oldest item automatically gets evicted
}
System.out.println(queueFinal);
}
}
}
EXAMPLE:
Your program prints an updated word cloud for each sufficiently long word read from the standard input.
The program takes up to three positive command-line arguments:
Your program then reads a continuous stream of words, separated by whitespace or other non-word characters, from the standard input. (A word can have letters, numbers, or single quotes.) For each word read, your program prints to standard output, on a single line, a textual representation of the word cloud of the form
The idea is to connect this tool to a streaming data source, such as Twitter, or speech-to-text from a 24-hour news channel, and be able to tell from the word cloud in real time what the current "hot" topics are.
THANKS!
In: Computer Science
Practice question:
Note: Demand is stated word for word like that on the practice question
Estimated consumer demand
Touristsā demand in the market is estimated to be, QT (P) = 1500 ā P
Localsā demand in the market is estimated to be, QL(P) = 4000 ā 4P
-Where P represents the price of a ticket in dollars. It is easy to identify locals, who can present proof-of-address to qualify for cheaper tickets. There is no danger of re-sale between groups. It is estimated that it will cost the tourism operator $20 to make each ticket available, and that there will be no fixed costs. Apart from the annual Ecological Tourism Licence fee (E).
-Show working out
A) Derive the combined demand function for the market.
B) Using the information provided in the scenario, derive the tourism operatorās total cost function. Exclude the cost of the annual licence fee.
C) Assume that the profit-maximising price is above the āchoke-priceā for locals. Find the profit-maximising quantity and price (Q and P). Is this price consistent with the assumption?
D) Assume that the profit-maximising price is below the āchoke-priceā for locals. Find the profit-maximising quantity and price (Q and P). Is this price consistent with the assumption?
E) What is the level of producer surplus under uniform pricing?
F) How many tickets will be available to locals, and what is the level of local consumer surplus (CSL)?
G) How many tickets will be available to tourists, and what is the level of tourist consumer surplus (CST )?
H) What is the profit-maximising quantity and price for the local market (QL and PL)? What is the level of consumer surplus in the local market (CSL)?
I) What is the level of consumer surplus in the tourist market under price discrimination (CST )? Clearly reference any results or calculations from previous steps.
J) What is the level of producer surplus under price discrimination?
In: Economics
In: Economics
In: Economics
C++
Write a word search program that searches an input data file for a word specified by the user. The program should display the number of times the word appears in the input data file. In addition, the program should count and display the number of grammatical characters in the input data file. Your program must do this by providing the following function:
void processFile(ifstream &inFile, string wordSearch, int &wordCount, int &grammaticalCount);
void processFile(ifstream &inFile, string wordSearch, int &wordCount, int &grammaticalCount);
Both functions should be called from main(). No non-constant global variables should be used.
Test using this txt file:
You prolly like eating lots of cake and stuff. But, if you eat
too much then you'll just be more prone to getting some cavities. Kids
especially like eating sweets and all sorts of candy cause I've never even met one that hasn't
lmao. Remember: "An apple a day keeps the doctor away!" or
"Good kids listen to their parents".
In: Computer Science
In: Nursing
Q1. ( 50 marks) please match word count to get a thumbs up
a. What is franchising? (150 words)
b. Analyze some industries in Dubai where franchising is expected to grow ( 220 word)
c. Why is pricing important for small businesses? ( 160 word)
In: Operations Management
Make sure to include comments that explain all your steps (starts with #)
Make sure to include comments that explain all your steps (starts with #)
Write a program that prompts the user for a string (a sentence, a word list, single words etc.), counts the number of times each word appears and outputs the total word count and unique word count in a sorted order from high to low. The program should: Display a message stating its goal Prompt the user to enter a string Count the number of times each word appears in the string, regardless if in lowercase or uppercase (hint: use dictionaries and the lower() function) Display the total number of words in the string Display the unique word count in the string in order from high to low Bonus: if a few words have the same count, sort the display in an alphabetic order For example, in the string: āHello hello my dear dear friend!ā the output should be: Total words: ========= 6 Word count: ========= dear - 2 hello - 2 friend - 1 my - 1
In: Computer Science