Please do both questions in MASM and complete these two in two separate files.
3. Summing the Gaps between Array Values
Write a program with an indexed addressing that calculates the sum of all the gaps between successive array elements. The array elements are doublewords, sequenced in nonde- creasing order. So, for example, the array {0, 2, 5, 9, 10} has gaps of 2, 3, 4, and 1, whose sum equals 10.
4. Copying a Word Array to a DoubleWord array
Write a program that uses a loop to copy all the elements from an unsigned Word (16-bit) array into an unsigned doubleword (32-bit) array.
In: Computer Science
Write a program named subtract.asm that does the following using LC3 assembly language:
Print a prompt "PRESS TWO KEYS: " Note that the prompt MUST LOOK EXACTLY like the above, with a colon and a space after the word KEYS with no newline. Get a two key press from the user. Subtract the second characters ASCII code from the first characters ASCII code. If the result is positive, print the word POSITIVE. Turn in subtract.asm to the appropriate submission point on Web-CAT.
In: Computer Science
Scenario: You are a network administrator in a medium-sized company. The owner has heard of using RIP and OSPF on the routers and that it will help your network. He isn't very computer savvy, so he wants you to explain it to him and tell him what to use and how you are going to implement it. Write a memo using standard memo format that outlines this for your company's owner using either a Microsoft Word Memo template or another example, including diagrams if necessary. You can use any drawing software (Visio, PowerPoint, Word, etc.) to create the diagram.
(a full page in length of content (any diagrams do not count toward this length)
In: Computer Science
Write the following methods in a Java project:
a) A Java method to determine and return the sum of first three numbers, where three numbers are received as parameters.
b) A Java method to determine and return the highest of N integers. The number of integers is received as a parameter. The method should prompt the user to enter the N numbers, then it return the highest.
c) A Java method to determine and return an appropriate value indicating if a number K is even, where K is received as a parameter.
d) A Java method to determine and return an appropriate value indicating if a word is present in a file, where the filename and word is received as parameters.
e) Test the above methods from the main method.
In: Computer Science
Using Multisim
Verify the logic of the XOR and XNOR gates and compare to OR and NOR gates.
A) Orient the Word Generator and Logic Analyzer in the workspace and enter the appropriate settings. (BELOW)
B) To create the four gates you will need four 10K resistors and:
1) OR gate: a (7432)
2) NOR gate: an OR (7432) with an INV (7404)
3) XOR gate: a (7486)
4) XNOR gate: a XOR (7486) with an INV (7404).
C) Use outputs 00 and 01 of the Word Generator as inputs A and B for each of the four gates and connect them to the first two inputs of the Logic Analyzer.
D) Wire the outputs from the four gates to the next four Logic Analyzer inputs and connect each output to ground through a 10K resistor.
Fill in a Truth Table for each of the four gates
Word Generator
The pins 15…….0 go across the bottom. Double click on the Word Generator to get the Control screen and select the following settings: Frequency = 1 kHz Trigger = Internal Display = Hex (codes) Also SET to Up Counter before you enter ACCEPT to leave the screen.
Logic Analyzer
Select the following setting: Clock/Div = 16 From the setup screen, click on Clock SET and choose: Clock Source = Internal Pre-trigger samples = 160 Post-trigger samples = 160 Threshold = 2.5V Enter ACCEPT to leave the Clock SET screen. From the setup screen, click on Trig SET and choose: Trigger Clock Edge = Positive Trigger Qualifier = x Pattern A = xxxxxxxxxxxxxx Trigger Combinations = A Enter ACCEPT to leave the Trig SET screen
In: Electrical Engineering
Eighth edition Administrative office management An Introduction Zane K. Quible Ph.D.
Mary Brown, the supervisor of the word processing center in Delta Corporation in San Antonio, recently retired because of her age. During the years she had been supervisor, various managers felt that Brown should be dismissed because of her laxness in supervising the ten employees in the center. Because she reaching retirement age, however she was not dismissed. The employees were often late to work, took longer breaks that was permissible, took advantage of the corporation in terms of sick days, and so forth. Mary was repeatedly asked to be stricter in her supervisory efforts, but no noticeable changes were ever made. When the qualifications for the replacement for Mary brown were developed, the decision was made that the new supervisor should be more authoritarian and should require the employees in the word processing center to conform with existing company policy. The replacement, Annabell Jackson, was hired primarily because of her authoritarian characteristics. All of her former employers who were contacted regarding Jackson’s performance mentioned her authoritarian personality. Because of the laxness of brown and the hope that Jackson could improve the situation, she was offered the job. As the administrative office manager, you are aware that the first day Jackson is on the job will probably determine whether or not the employees in the word processing center will cooperate with her. Thus, you feel a necessity to discuss several things with her before her first day on the job.
Outline the approach you believe Jackson should take in winning the respect and cooperation of the employees in the word processing center.
In: Operations Management
Python please!
Create one program to include all 10 elements:
Create a string of several word and convert it to a list using:
string.split(), use the space to split the words.
Convert the resulting list to the original string using ' '.join(the list)
In: Computer Science
// For an input string of words, find the most frequently
occurring word. In case of any ties, report any in output.
// Your algorithm should be of the runtime O(n) time where n is the
number of words in the string.
#include <iostream>
#include <vector>
#include <sstream>
using namespace std;
string findWord(vector<string>& tokens);
int main() {
string line = "FDo all the good you can, by all the
means you can,
in all the ways you can, in
all the places you can,
at all the times you can, to
all the people you can,
as long as ever you
can.";
// Convert string to a vector of words
char delimiter = ' ';
string token;
istringstream tokenStream(line);
vector<string> tokens;
while (getline(tokenStream, token, delimiter)) {
tokens.push_back(token);
}
cout << "The most frequently occuring word is: "
<< findWord(tokens) << endl;
}
string findWord(vector<string>& tokens) {
// Your code here
}
// Convert string to a vector of words
char delimiter = ' ';
string token;
istringstream tokenStream(line);
vector<string> tokens;
while (getline(tokenStream, token, delimiter)) {
tokens.push_back(token);
}
cout << "The most frequently occuring word is: "
<< findWord(tokens) << endl;
}
string findWord(vector<string>& tokens) {
// Your code here
}
";
// Convert string to a vector of words
char delimiter = ' ';
string token;
istringstream tokenStream(line);
vector<string> tokens;
while (getline(tokenStream, token, delimiter)) {
tokens.push_back(token);
}
cout << "The most frequently occuring word is: "
<< findWord(tokens) << endl;
}
string findWord(vector<string>& tokens) {
// Your code here
}
In: Computer Science
Background: This course is all about data visualization. However, we must first have some understanding about the dataset that we are using to create the visualizations.
Assignment:
Questions/Requests:
Your document should be an easy-to-read font in MS Word (other word processors are fine to use but save it in MS Word format).
For : dataset_price_personal_computers.csv this is the link. With the help of this you can download that csv file
https://drive.google.com/file/d/1Op6XIzU5WuVF-w1OHqdcUJXMTUICaFy0/view
Sorry, i came to know that unable to download the file. Try this link and let me know
Please provide answers for this question including screenshots and code.
Thanks
In: Computer Science
500 word minimum
In: Finance