Please write in x86 Assembly language on Visual Studio. IRVINE32
Write a program to copy one array of size 24 to another array of size 24 using string instructions. Write 3 versions of this code. One code must copy byte at a time. One code must copy word at a time and one code must copy double word at a time. Cut and paste the array in memory to show your code is working.
In: Computer Science
public int static mirroringIt(String str){
return n;
}
implement this function so its takes ONE string and remove the characters so it becomes a mirrored word.
example:
Input: qswwbi
Output: 4
remove q s b i
"wow" is a mirror word.
output : 0
Input : "if"
output : 1
remove either I or f because it's two words.
don't use 3rd parties library or java.util.
In: Computer Science
1- The average is a way to characterize a collection of values. When the values refer to a fixed item (for example the number of oranges per tree) and we want to find the average number of oranges, the _______________ mean is appropriate.
2- The ___________________________ mean is used when we want to preserve the effect on the mean of a percentage change in a value independent of the values magnitude.
3- The word size of the IAS computer (remember one instruction word contains the left and right instructions) is ________ bits.
In: Computer Science
Read the “UPS in India” case
Answer the following questions fully and submit to this
DropBox.
1. Why are foreign MNEs like UPS seeking to invest in India? (200
words minimum)? Please include a word count of your answer.
2. What advantages might accrue to local competitors?
How might foreign MNEs gain a competitive advantage in the Indian
market? (150 words minimum)? Please include a word count of your
answer.
In: Operations Management
According to IHS’s study (2016) on Asia’s top ten foreign direct investment hotspots, four ASEAN countries — Indonesia, Malaysia, the Philippines and Thailand — will become trillion dollar economies by 2030. It is expected that these countries will join the ranks of Asia’s group of nations that have a GDP exceeding $1 trillion by then. Also, rapid growth is expected to continue in the ASEAN frontier markets of Vietnam, Myanmar, Cambodia and Laos.
Assume that your company wants to learn more about the business environment of these economies and find out whether it can capitalize on the opportunities arising from these fast-growing economies. Please select one of the ASEAN countries for discussion.
a Briefly introduce the country selected. (Please include a table listing the key facts about the country.) (Word required 600-700)
b In view of its current situation, undertake an internal analysis for the country. (Word required 700-800)
c Based on your analysis in (b), discuss whether the country is an attractive location for Hong Kong corporations. (Word required: 700-800)
d Based on your analysis above, discuss whether your company should invest in the country. (Word required 600-700)
In: Economics
Your assignment is to build a program that can take a string as input and produce a “frequency list” of all of the words in the string (see the definition of a word below.) For the purposes of this assignment, the input strings can be assumed not to contain escape characters (\n, \t, …) and to be readable with a single input() statement. When your program ends, it prints the list of words. In the output, each line contains of a single word and the number of times that word occurred in the input. For readability, the number should be the first thing on the line and the word should be second.
Specific programming requirements
1. Use good prompts for all user input
2. No “dead code” – remove all diagnostic prints, abandoned attempts, etc.
3. Use loops and data container types to reduce repeated code. No section of the program should be longer than necessary and the whole program must be less than 150 lines long.
4. Use comments only when necessary to document the program.
5. Variable names must be mnemonic
6. The first lines in the program must be a comment(s) containing your name, class and section
7. Your program must end normally (not crash or get stuck in an infinite loop)
In: Computer Science
Problem: Implement a class named StringParser, along with specified methods, that can read words from a text file, parse those words (such as finding palindromes), and write those words to a new file More specifically: 1. Write the StringParser class so that it has the following methods: a) public static void main(String[] args) -- The main driver of the program. Prompts the user for an input file, an output file, and a choice for what kinds of words to output. b) public static void rawOutput(File in, File out)-- Parses an input file, writing each word from the input on a separate line in the output file. c) public static void palindromeOutput(File in,File out) -- Parses an input file, writing only the palindromes to the output file, in alphabetical order, one line at a time, without repetition. Palindromes are words that read the same forward and backward, ignoring digits and punctuation. d) public static void hundredDollarWordOutput(File in, File out) -- Parses an input file, writing only the $100 words to the output file, in alphabetical order, one line at a time, in uppercase, without repetition. $100 words are found by assigning $1 to A, $2 to B, and so on. For example ELEPHANTS is a $100 word because: E + L + E + P + H + A + N + T + S is 5 + 12 + 5 + 16 + 8 + 1 + 14 + 20 + 19 = 100 e) public static boolean isPalindrome(String word) -- Determines if a word is a palindrome (reads the same forward and backward). The method is case-sensitive, so it will say that dad and DAD and d-a-d are palindromes, but Dad and d-ad are not palindromes. f) public static String cleanup(String word)-- Takes a string and removes all non-letters, returning an all uppercase version. For example, this input: "A man, a plan, a canal. Panama." will produce this output: "AMANAPLANACANALPANAMA" g) public static int wordValue(String word)-- Returns the monetary value of a word, found by assigning the value $1 to A, $2 B, and so on, up to $26 for Z. The method will ignore differences in case, so both A and a are each worth $1. It will also ignore any non-letters in the input. 2. Create your own input test file, and use it with your code to generate three output files. 3. Upload all five files (Java source code, input file, three output files).
In: Computer Science
Question 1 (Word limit 200 words)
“If country A and country B have the same level of real GDP per person, then people in both countries must enjoy the same standard of economic welfare.” Is this statement true or false? If true, please explain your answer. If your answer is false, please list and explain two things that lead you to this conclusion.
Question 2 (Word limit 150 words)
Identify and explain the immediate effect of each of the following events on domestic GDP and its components.
Kylie receives an unemployment insurance cheque.
Bob buys an imported sports car.
Question 3 (Word limit 200 words)
Suppose the required reserve ratio is 10% and Jane deposits $50000 of her cash into a bank. By how much will total money supply rise or fall? Show your working and explanation.
In: Economics
|
Suppose that 8% of emails is spam and 92% (prior probabilities) are normal. The probabilities (likelihood of evidence) of occurrence of various worlds in normal and spam emails are given in the following table:
|
Consider the following email message “I am Mrs Sarah Boardman. I have decided to seek a confidential co-operation with you, During the course of our bank year auditing, I discovered an abandoned fund, sum total of US $3.5 Million in the bank account that belongs to a deceased customer who unfortunately lost his life and entire family in fatal gassy car accident. Reply me for more clarification if you are interested”.
Calculate the posterior probability that this message is spam.
In: Statistics and Probability
Develop the getSuggestions(ArrayList wordCountList) method as the base method of the class.
Develop the countWords(ArrayList wordList) method to find the frequencies of all words in the text file.
Develop the getWordList(File[] fileArray) method to get all words in the text file. Ignore the words that have 3 or less characters.
Your customer wants you to develop a method that will find the sentences that contain a specific word. This is basically a word search, but your customer needs the list of the full sentence which has the search term. They are planning to use this method for sentiment analysis, which involves computationally identifying and categorizing opinions expressed in a piece of text.
They are planning to search the web (tweets, blogs, social media, and so on) for user opinions about a specific product or situation. Once they get the sentence with the search word in it, they will evaluate the attitude of the user using the whole sentence.
In: Computer Science