Questions
Please do both questions in MASM and complete these two in two separate files. 3. Summing...

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...

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.

  • All of this code should be in your main portion of the program You do not need subroutines.  
  • You are not allowed to use subroutines and therefore do not need to save registers.

In: Computer Science

Scenario: You are a network administrator in a medium-sized company. The owner has heard of using...

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...

Write the following methods in a Java project:

  1. a) A Java method to determine and return the sum of first three numbers, where three numbers are received as parameters.

  2. 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.

  3. 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.

  4. 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.

  5. 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...

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...

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 function that prints a...

Python please!

Create one program to include all 10 elements:

  • Create a function that prints a sentence passed to the function as parameter. On the next line, print the same sentence without the 1st and the last character, use string slicing.
  • Use the following sentence:
    • This is the sentence.
  • Given a string:
  • This string was copied in an article.
  • Replace the relevant words to read as follows:
  • This string was discovered in the article xyz.
  • Given a string:
  • This string is highly reversible.
  • Write the code to reverse the string. Use 2 different ways of doing this.
  • Given a string:
  • This string has a hidden message in it.
  • Write the code that checks to see the word: hidden
  • is in the sentence.
  • Write the code that checks to see the word: not
  • is not in the sentence.
  • What is the size of the following string?
  • This string is saying 'I am not sure what is the my size'
  • Write the code for it and print the size.
  • Given the sentence below:
  • This sentence needs to get rid of the word delete
  • Delete the words: to get rid of
  • from the sentence and print it.
  • Create a sentence and the use the following functions to manipulate the sentence.
  • strip()
  • lstrip()
  • rstrip()
  • Create a function that accepts 2 parameters.
  • Parameter one is a single printable character such as '='.
  • Parameter two is a number not more than 80.
  • The function will return a string that is the character supplied strung together n number of times.
  • example. print(myLineFunction('%', 20)) which should print: %%%% up to 20 %s
  • Create a string and test its start and end character/s using the
  • string.startswith() and string.endswith() functions.

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...

// 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...

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:

  • Use RStudio to generate a word document with basic data analysis of the following dataset: dataset_price_personal_computers.csv  

Questions/Requests:

  • Create a summary of stats for the dataset. (provide a screen shot)
  • Create a correlation of stats for the dataset. (provide a screen shot) (Hint: Transform may be needed)
  • What is the Min, Max, Median, and Mean of the Price? (provide a screen shot)
  • What is the correlation values between Price, Ram, and Ads? (provide a screen shot)
  • Create a subset of the dataset with only Price, CD, and Premium. (provide a screen shot)
  • Create a subset of the dataset with only Price, HD, and Ram where Price is greater than or equal to $1750. (provide a screen shot)
  • What percentage of Premium computers were sold? (provide a screen shot)(Hint: Categorical analysis)
  • How many Premium computers with CDs were sold? (provide a screen shot)(Hint: Contingency table analysis)
  • How many Premium computers with CDs priced over $2000 were sold? (provide a screen shot)(Hint: Conditional table analysis)

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

Describe the different forms of competition and give specific examples of these competitors with regard to...

  1. Describe the different forms of competition and give specific examples of these competitors with regard to a particular firm. Explain the strategic choices as to how these firms are positioning themselves to handle these competitors.+

500 word minimum

In: Finance