Write an assembly language program that does the following 1. Prompts the user to input an...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write an assembly language program that does the following 1. Prompts the user to input an integer number between 1 and 10 using the console 2. Write a function to initialize an array of 5 elements with the value entered by the user. This function must include the following o A loop o A branch 3. Write a function to multiply the third element of the array initialized above by the number 4. 4. Write a function to print all the elements of the array to the console. The third element must be 4 times the other elements. This function must include the following A loop A branch Your code must have three separate functions (in addition to the main section) and function calls 1. Function to initialize the array 2. Function to multiply the third element of the array by the user input number 3. Function to print the arrays to screen. Write an assembly language program that does the following 1. Prompts the user to input an integer number between 1 and 10 using the console 2. Write a function to initialize an array of 5 elements with the value entered by the user. This function must include the following o A loop o A branch 3. Write a function to multiply the third element of the array initialized above by the number 4. 4. Write a function to print all the elements of the array to the console. The third element must be 4 times the other elements. This function must include the following A loop A branch Your code must have three separate functions (in addition to the main section) and function calls 1. Function to initialize the array 2. Function to multiply the third element of the array by the user input number 3. Function to print the arrays to screen.
Expert Answer:
Answer rating: 100% (QA)
The image contains a task description for writing an assembly language program The program is supposed to 1 Prompt the user to input an integer number ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Evaluate: log12 8000
-
Write a MIPS assembly language program that a) Prompt the user for an integer in the range of 0 to 50. If the user inputs 0 the program stops. b) Otherwise, the program stores the numbers from 0 up...
-
Five separate projects have calculated rates of return of 8, 11, 12.4, 14, and 19% per year. An engineer wants to know which projects to accept on the basis of rate of return. She learns from the...
-
What tradeoff does a firm face when choosing how to invest its cash?
-
2. Design a single stage CMOS circuit that implements the following function: OUT A+ B. (C+D+E) 3. Size all the transistors in the circuit in problem 2 such that TR = 3 TF. The minimum geometry is W.
-
A variable-length cantilever beam of rectangular cross section \(1.6 \mathrm{~mm} \times 25 \mathrm{~mm}\), made of spring steel, is used to measure the frequency of vibration. The length of the...
-
The Action Toy Company has decided to manufacture a new train set, the production of which is broken into six steps. The demand for the train is 4,800 units per 40- hour workweek: a) Draw a...
-
Bartosiewicz Clinic uses client-visits as its measure of activity. During January, the clinic budgeted for 3,900 client-visits, but its actual level of activity was 3,880 client-visits. The clinic...
-
V. N. Murti and V. K. Sastri investigated the production characteristics of various Indian industries, including cotton and sugar. They specified CobbDouglas production functions for output (Q) as a...
-
On November 1, 2022 Fashions Inc. borrowed $60,000 from RBC on a five-month, 6% note payable. The principal and interest are payable at maturity (April 1) and Fashions Inc. prepares its financial...
-
In the early 1980's just as serious health effects were being noted about sugar consumption, Kellogg's changed the name of Sugar Pops to Corn Pops (the sugar content did not change) and the name of...
-
Consider the concept of media literacy. Does practicing media literacy make it more difficult to communicate on the Internet or does it make it easier? Discuss items that may have read or shared that...
-
Operations Management To start, view MGT Library Research Slideshow.pdf Please post to the discussion board your chosen company and operations management topic. Using ABI INFORM/ PROQUEST(Links to an...
-
The project I will be talking about was a marketing initiative to gain more customers for our checking and savings accounts at a local bank I worked at. There was several of us that made up the team,...
-
e. On January 1, 2017, P acquired 80% of S for $400,000. On the date of acquisition, S had the following balance sheet: S Company Balance Sheet January 1, 2017 Assets Liabilities and Stockholders'...
-
19 1. Compute the current ratio for each of the following companies. (Round your answers to 2 decimal places.) Current Assets Current Liabilities Edison MAXT Chatter TRU Gleeson S 71,000 S 94 430...
-
The first law of thermodynamics is sometimes whimsically stated as, You cant get something for nothing, and the second law as, You cant even break even. Explain how these statements could be...
-
a. Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes she gives during the semester. Design an application that accepts a student name and 10 quiz scores....
-
Suppose you know that every employee in your organization has a seven-digit ID number used for logging on to the computer system. A loop would be useful to guess every combination of seven digits in...
-
Your downloadable files for Chapter 11 include DEBUG11-01.txt, DEBUG11-02.txt, and DEBUG11-03.txt. Each file starts with some comments that describe the problem. Comments are lines that begin with...
-
The procedure in Exercise 10.46 also calculates the chi square test for independence. Do Exercise 10.40 using the computer. Data From Exercise 10.46 Data From Exercise 10.40 10.46 A chi square test...
-
A chi square test is easily implemented on a computer. With the counts from Example 8 in columns 1-4, the MINITAB commands produce the output Expected counts are printed below observed counts Repeat...
-
With reference to Exercise 10.48, test the null hypothesis \(p=0.20\) versus the alternative hypothesis \(p Data From Exercise 10.48 10.48 In a sample of 100 ceramic pistons made for an ex-...
Study smarter with the SolutionInn App