Write an x86 assembler program t
Q: Create a function that returns the frequency distribution of an array. This function should return…
A: Algorithm - Take input from user. Now use the below logic - for (let el of arr) { if (out[el])…
Q: agree, list your arguments. disagree, list your contradictory arguments.
A: Testing is the basic activity aimed at detecting and solving technical issues in the software source…
Q: "MPT star" is a program for calculating the annual municipal property taxes, based on the…
A:
Q: IN JS ONLY ASAP In this challenge, you are given an array and in turn, you must obtain a smaller…
A: In this problem, we need to design the code in the JS programming language. Input - Array Output…
Q: Convert the above code to three address code do x = x + 2; while (a[x] < t);
A: Three address code is a type of intermediate code which is easy to generate and can be easily…
Q: describe such a circumstance.
A: If you walk 20 foot in one sec then 1 foot =0.000305 km then, 5km =16404.2 foot if 20 foot takes 1…
Q: there is a red point and some
A: There is a red point and some blue points on how to move so that the sum of the distances from the…
Q: This class will contain the method necessary to read and parse the .csv file of stock information.…
A: class DateFormatException extends IllegalArgumentException { public DateFormatException(String…
Q: What methods are used for breaking very long expression and statements?
A: Introduction: Break Statement is a loop control statement that is used to terminate the loop. As…
Q: David Martin just finished his inspection coordinator course. After obtaining his first appointment,…
A: In the given scenario it is not advisable to employ a secretary who is a non - information…
Q: What is Encapsulation in Java? Why is it called Data hiding? Is Abstraction and Data hiding the…
A: Encapsulation- Encapsulation is a process of wrapping up of data and code into a single unit. An…
Q: Question 1. Show that the following problem is decidable by describing a Turing machine that solves…
A: To show: The issue that there are vastly numerous Turing machines that all perceive L(M) is…
Q: Write a function that takes in an array of integers and returns the integers that are either…
A: Algorithm - Take input from user. Now use the below logic - nums.map(function(el){…
Q: Given an array of wine objects, write a function that returns the name of the wine he will buy for…
A: Algorithm - Take input from user. Now use the below logic - if (wines.length === 0) return…
Q: Let the first three columns of the data set be separate explanatory variables X₁, X2, X3. Again, let…
A: The complete answer in Matlab is below:
Q: A software development firm is planning a new airport luggage control project. The system is to…
A: ANSWER:-
Q: Encode (represent) the decimal value -10.1875 as a 32-bit IEEE -754 floating point field and show…
A: The Answer is :- This question comes from Number Theory which is a paper of Computer Science. Let's…
Q: Write a C++ program that asks the user to enter the radius of the circle and then find the…
A: As per the requirement program is developed in c++. Algorithm: Step 1: Define the pi constant to the…
Q: In Chefland there is a competition with N participants (numbered 1 to N). There are N-IN-1 rounds in…
A: The Python code is given below with code and output screenshot Happy Coding?
Q: What is the difference between a constructor and a method?
A:
Q: Create a function which counts how many lone 1s appear in a given number. Lone means the number…
A: Input - Array Output - array In this problem, we need to design the code in the JS programming…
Q: David Martin just finished his inspection coordinator course. After obtaining his first appointment,…
A: Inspection coordinator case study:This case study deals with inspection coordination. Where David…
Q: In python, Write a for loop that iterates through numbers from 1 to 10, adds them up together, and…
A: Python One of the most popular languages used by organisations and enterprises, Python is…
Q: Create a function which counts how many lone 1's appear in a given number. Lone means the number…
A: Algorithm - Take input from user. Now use the below logic - for (let i =0;i<…
Q: sing the output from the previous activity. Discuss in at least 100 words your findings in the…
A: Note: The programs both(compiler and interpreter) are given by numbered 1 and 2 respectively by…
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: There are several approaches are possible including these details:- • This project uses a printable…
Q: Task 1: Turing Machine for Bit Inverter The state transition diagram for a Turing machine that…
A: A Turing machine is a numerical model of calculation portraying a theoretical machine that controls…
Q: William Tucker is a well-known and currently he is cooking a big pizza in rectangle shape having…
A: code:
Q: Create an algorithm that takes an array with colored red, white, yellow, and blue pebbles. Sorts the…
A: to solve this use the Dutch-national-flag solution: 1 represents red color pebbles 2 represents…
Q: What is the polymorphism in Java? Complete the following code that explains Polymorphism:…
A: The code is given below with proper explanation and output screenshot
Q: Do you think that in order to give developing nations a chance to enter the information age more…
A: The solution to the given question is: No , I do not believe that software developers need to…
Q: Code to calling a block multiple times Write method can invoke a block as many times as it wants.
A: code for calling a block multiple times This method, except that it has two my_:-block.call…
Q: William Tucker is a well-known and currently he is cooking a big pizza in rectangle shape having…
A: Program : #include <bits/stdc++.h>using namespace std; int…
Q: Write short notes on Client-Server networking?
A: In this question we need to explain the concept of client-server networking.
Q: Design paynchronous counters to count binary sequence from00000 to 10111. Corresponding to DCBA,…
A: Hello student I am giving my own theory on this question and it will be based on my best of…
Q: What protocol steps take place, starting from powering on your PC to getting the web page? Assume…
A: The question is a multiple type. Hence the first question has been answered. The question is: What…
Q: Processor, main memory and the I/O cannot share the same system bus? O a. false O b. True
A: A system bus is a solitary PC transport that interfaces the significant parts of a PC framework,…
Q: Write a C++ program, that asks a user to enter the width and length of the rectangle and then find…
A: Coded using C++ Language.
Q: What are the advantages and disadvantages of quadratic probing compared to linear probing?
A:
Q: Create a Java program that will display the student's information. The program should perform the…
A: We need to write a Java code for the given scenario.
Q: Q: The X protocol suffers from scalability problems. How can these problems be tackled?
A:
Q: Someone has attempted to censor my strings by replacing every vowel with a * 1*k* th*s. Luckily,…
A: Algorithm - Take input from the user. Now use the below logic - for (let i=0;i<vowels.length;…
Q: ASAP Solution needed / Solution | Given a matrix mtx, implement a function that returns the complete…
A: Since the programming language is not mentioned, I have done the code using JavaScript.
Q: Q2) Write a program that prompts the user to input two integers: First Integer and SecondInteger…
A: Step-1: StartStep-2: Declare variables FirstInteger, SecondInteger and take inputs from userStep-3:…
Q: The project's organization is an important element of the development plan. 1. List the components…
A:
Q: uter ID walk through the items in the hello packet how they need to un
A: Introduction: Below describe the Used as OSPF Router ID walk through the items in the hello packet…
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: Background Apple Computer was known for the quality of its manuals.
Q: Create a function that outputs the result of a math expression in words. Examples wordedMath ("One…
A: I have implemented the question according to the specification. Hope you find this useful. The code…
Q: ibe the operating system process which interfa
A: Introduction: ALU, which stands for arithmetic logic unit and performs arithmetic and logic…
Q: What are the advantages and disadvantages of quadratic probing compared to linear probing
A: Quadratic probing has a few advantages over linear probing. First, it can help to avoid clustering,…
Step by step
Solved in 2 steps with 1 images
- *Written in MASM Assembly 80x86 no c++ no python etc. allowed even if it supports** There will be a function called getdouble. This function will simply double any number which is currently in eax and store the result in eax. There will be a function called gettriple. This function will simply triple any number which is currently in eax and store the result in eax. There will be a function called getoddeven. This function will check if the value in eax is even. IF it is even, it will call the getdouble function. IF it is odd, it will get the gettriple function. (Note: edx stores remainder after you divide) Your main program should ask the first user for a name as well as for a number. You should then call the getoddeven function. That function will either double or triple the initial value entered by the user. Display the name and the final result for this first user. Your program will then do the same for a second user for a name as well as for a number. You will again call the…please use python language instruction- 1. Read the code from line 123 to line 137. This is the basically the selection. Remember how we talk about there are certain things about controlling population? Please explain how we make sure that the population, when going through a selection, does not shrink over generation. You may simply explain this as comments in a Python file as opposed to in a Word file:. Note that the code from line 123 to line 137 is divided into two small blocks. Use that as 2. The code we've just examined has one functionality of selection. So, we really should wrap that into one function nanied 'select'. Note that in this file there is no class named 'Population'. So, you should make this function a static method that belongs to the class named 'Individual', or a simple function that resides outside the class named 'Individual'. Please think about what the inputs and output of this function are before you start coding. Once you have created the…Write a sequence of statements that display a subroutine’s return address. Hint: the esp register points to the return address stored on the call stack. You can call procedure WriteHex. This can be solved in 2 lines of code. The following exercise can be solved using either 32-bit or 64-bit code. Assembly language
- Problem Y: Implement the reader writer problem using pthreads and semaphores. You should allow multiple readers to read at the same time and only one single writer to write to the data set. You are required to use the following: 1. A semaphore rw_muter initialized to 1. 2. A semaphore muter initialized to 1. 3. An integer reader_count initialized to 0.Numbers between 0 and 15 are stored in the memory location starting from physical address B000Fh randomly. Write a program which finds the element order number in the string starting from 0 to 15 and writes to physical address C000Fh. (Eg: "1" is 2nd element in the first string, "2" is 4th element, ....etc)Please write a code example in Assembly Language where A is returned as b. Please include return code.
- IN asmly language please Pretty please with successful build screen shot and output 1.Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) − (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers. Note: you can hard code integer literal onto the registers, e.g. mov eax,55 ; AddTwo.asm - adds two 32-bit integers.; Chapter 3 example .386.model flat,stdcall.stack 4096ExitProcess proto,dwExitCode:dword .codemain proc mov eax,5 add eax,6 invoke ExitProcess,0main endpend main 2. Listing File for AddTwoSum Generate a listing file for AddTwoSum.asm(in 3.4.3 of the text) and write a description of the machine code bytes generated for each instruction. You can write your descriptions directly over the .lst file. You might have to guess at some of the meanings of the byte values. Submit the .lst file with your description over it.…Write the mnemonics of the following program: The pressure of two boilers is monitored and controlled by a microcomputer works based on microprocessor programming. A set of 6 readings of first boiler, recorded by six pressure sensors, which are stored in the memory location starting from 2050H. A corresponding set of 6 reading from the second boiler is stored at the memory location starting from 2060H. Each reading from the first set is expected to be higher than the corresponding position in the second set of readings. Write an 8085 sequence to check whether the first set of reading is higher than the second one or not. If all the readings of first set is higher than the second set, store 00 in the ‘D’ register. If any one of the readings is lower than the corresponding reading of second set, stop the process and store FF in the register ‘D’. Data (H): First set: 78, 89, 6A, 80, 90, 85 Second Set:71, 78, 65, 89, 56, 75Write in C++ in 2 different programs/files. One will have the code for wzip and one will have the code for wzip. Description: wzip and wunzip class overview: The next tools you will build come in a pair, because one (wzip) is a file compression tool, and the other (wunzip) is a file decompression tool. The type of compression used here is a simple form of compression called run-length encoding (RLE). RLE is quite simple: when you encounter n characters of the same type in a row, the compression tool (wzip) will turn that into the number n and a single instance of the character. Thus, if we had a file with the following contents: aaaaaaaaaabbbb the tool would turn it (logically) into: 10a4b The exact format of the compressed file is quite important; here, you will write out a 4-byte integer in binary format followed by the single character in ASCII. Thus, a compressed file will consist of some number of 5-byte entries, each of which is comprised of a 4-byte integer (the…
- Assignment for Computer Architecture You are to write a program in MIPS that computes N! using recursion. Remember N! is the product of all the numbers from 1 to N inclusive, that is 1 x 2 x 3 x (N – 1) x N. It is defined as 1 for N = 0 and is undefined for values less than 0. The programs first requests the user to input the value of N (display a prompt first so the user knows what to do). If the input value is less than 0, the program is to display “N! undefined for values less than 0” and then requests the user to input the value of N again. If the value input is non-negative, it is to compute N! using a recursive function, that is one that calls itself. You are to have your name, the assignment number, and a brief description of the program in comments at the top of your program. Since this is an assembly language program, I expect to see comments on almost every line of code in the program. Also make the code neat: line up the command fields, the register fields, and the comment…Project Summary: Write an Intel 8086 Assembly program that reads N numbers as Strings, convert them into variable sized Integer numbers, and then print the summation and average of the numbers. The program should allow the user to decide the size of the input number itself (assume integers in format but with variable size). Detailed Description: - Have the program prompt the user to input N and the size of the number then request inputting the first number, then the second and so on until N numbers are input. - Your code should allow users to select the size of the numbers, for example you can have integers with size of 1 Byte each, or you can make them 10 Bytes large. - Validation: Your code should make sure user inputs Decimal numbers only, and with predetermined size only. When a user inputs a wrong value, your code should print an error message that explains it, and then gives the user another chance to input it correctly. - When the user presses Enter, your code should read the…Course: Assembly Language Write an assembly program that lets the user to type some text, consisting of wordsseparated by blanks, ending with carriage return, and display the text in the same word orderas entered, but with the letters in each word reversed. For example, “this is a test” becomes“siht si a tset”. Note: code in 8086 processor