Write a program that receives two arrays of signed doublewords from keyboard(Reference Irvine32.lib). For each element x; in the first array, if the corresponding yi in the second array is equal, increment a count. At the end, return a count of the number of matching array elements in EAX.
Q: and daisy
A: given - Difference between polled interrupt and daisy chain(vectored) interrupt in tabular form
Q: Evaluate the function y (shown in the photo.) for x = 3 to x = 5 in steps of 0.5. Write the complete...
A: Since no programming language is mentioned, I am using matlab. Algorithm: Start Set xt=3:0.5:5 Init...
Q: O(1) if n = 1 , T(n) = 8T (п/2) + Ө(n?) if n > 1.
A:
Q: Python Program using foward derivative using numpy Compute the rounding error for distint values of ...
A: def derivative(f,a,method='central',h=0.01): '''Compute the difference formula for f'(a) with ste...
Q: Write a java program that: • Declares two corresponding arrays with size 5, one for employee's name ...
A: Your java program is given below as you required with an output.
Q: Design the logic, using flowchart or pseudocode, for a program that calculates the projected cost of...
A: Algorithm START INITIALISE laborcost = 30 DECLARE hours, costofmaterials, costofjob DO INPUT hours, ...
Q: In a computer environment with limited resources, how would you choose from the several picture repr...
A: Introduction: Graphs and diagrams, tables and grids, formulae, symbols, phrases, gestures, software ...
Q: By default, the system journals are saved in the following directory:
A: Introduction : System journal is a kind of service that a system offers in order to gather, organize...
Q: Identify if possible the type of addressing modes for the following instructions. 1. MOV EDX, [EAX ...
A: The way of specifying data to be operated by an instruction is said to be addressing mode. Addressin...
Q: A hypothetical isotropic antenna is radiating in free-space. At a distance of 100 m from the antenna...
A: Answer the above questions are as follows:
Q: u execute Data Structure in C prog
A: Below the some method how you execute Data Structure in C programming?
Q: In what situations is it beneficial to bundle together processes and programs to form subsystems tha...
A:
Q: Describe the tools and technologies that are used to aid in the administration of information techno...
A: Introduction: IT project management is a process for coordinating, arranging, and ensuring transpare...
Q: Turn the following array-based binary tree into a max-heap. Show your work step by step. (You will n...
A: Below is the answer to above question. I hope this will be helpful for you...
Q: The Kano analysis tool allows companies to identify the key product and/or service factors for actio...
A: The Kano analysis tool allows companies to identify the key product and/or service factors for actio...
Q: Write a program called CashRegister.cpp. The program should prompt the user for each item they are p...
A: Create two seperate vector one store item price and second one atore item list. Don't write full pro...
Q: Discuss another algorithm under Divide and Conquer. In your discussion, include the following: 1. ...
A: Divide And Conquer : This technique can be divided into the following three parts: => Divide:- ...
Q: Create a MULTIPLICATION TABLE in GUI JAVA Programming using JOptionPane.
A: Here two methods of JOptionPane will be used: showInputDialog() to get the input from user. showMes...
Q: What kind of businesses are most likely to reap the benefits of cloud computing. Why?
A: Introduction: Cloud computing: The cloud computing is the distribution of computer services via the ...
Q: Giving that, after applying Depth-first search (DFS), the visited nodes are as follows: A-B-E-F-G-C...
A: DFS:Start from the root or any arbitrary node and mark the node and move to the adjacent unmarked no...
Q: Write the implementations of functions copy1 and copy2 for copying strings. copy1 uses array index n...
A: Algorithm: Start Implement a method named copy1() that takes two strings s1, s2 as arguments Inside...
Q: For each of the following languages over the alphabet {0,1}, construct a DFA that recognizes it. a) ...
A: 1 construct DFA over the alphabet {0,1} a. L1 = {w | w contains substring 0111} it accept 0111, 01...
Q: 4. Be able to write a simple user defined function that you can call and use in another program with...
A: Code: mass = 20;velocity = 10:-0.1:1;kinetic(mass,velocity)function kinetic(m,v) KE = 0.5*m*v.^ 2...
Q: Please enter your Name: Neo Redors Please enter your Age: 21 Please enter your Address : Manila Plea...
A: Output explanation: First program is asking us to enter name. When we enter name, it is stored in so...
Q: Write a program that prompts the user to input three numbers. The program should then output the num...
A: As no programming language is mentioned, it is solved using basic C++
Q: VII.Let A = {2, 4, 6, 8}, B = {6, 9}, C = {4, 8}. Answer each of the following questions. Justify yo...
A: Find the answer with explanation given as below :
Q: What do you think "setting" means in terms of CMC?
A: According to the information given:- We have to explain the term setting in CMC.
Q: Discuss RFID and near field communication (NFC), as well as the problems and security issues associa...
A: RFID: RFID is a remote correspondence that extraordinarily utilizes electrostatic or electromagnetic...
Q: What sort of data does Amazon need for its sales system administration, and in what format does Amaz...
A: Introduction: Amazon is a significant player in the E-commerce industry, serving a large and loyal c...
Q: Data structures like as arrays, lists, stacks, queues, and trees are abstractions, but in what sense...
A: A data structure is a collection of data elements that together form a logical whole. A data structu...
Q: Many organizations implement a customer satisfaction rating system to measure project success instea...
A: The answer is given below.
Q: Compilers and assemblers create object code files from source files. To run the object files, they m...
A: Introduction: A compiler is a computer program that converts computer code written in one programmin...
Q: Using Java, code the following 1. Create an empty linked list that prints out the value Null 2. Cr...
A: Here I have created a class named SinglyLinkedList. Inside the class, I have created another class n...
Q: Create a program that will display the product, qoutient, sum and difference of two numbers. The val...
A: Given two numbers Declare two numbers one is 45.and another one is 5.5 Calculate the sum of the two...
Q: Write a c program that creates an integer array of size 100, and fill this array with random numbers...
A: Please find the answer below :
Q: I Communication paging. (ii) Quadrature Amplitude Modulation (QAM) and different variations of Phase...
A: One-way communication to a broad audience is possible using a paging system. A one-way paging system...
Q: watch this link: Introduction to IT infrastructure Then explain what a data center is?
A: IT infrastructure is the combination of all hardware, software, network, protocols, servers, etc, re...
Q: Consider a toll plaza on a bridge. Cars passing through the toll plaza must pay a toll of Rs.30/-. M...
A: The program is written in C++. Check the program screenshot for the correct indentation. Please chec...
Q: In a JSP file, there is one JSP scriptlet and one JSP expression, which are both executed. It is sti...
A: Introduction: JSP is a Java standard technology that allows you to create dynamic, data-driven pages...
Q: Question 11 Consider the following MIPS loop: LOOP: sit $t2, Szero, $1 beq $t2, Szero, DONE subi $t1...
A: According to the information given:- We have to choose the correct option to satisfy the equivalent ...
Q: Establish that L is context-free by building a CF grammar for L = {0n1m: n does not equal 6m and n,m...
A: number of a's are greater than the number of b's , so we can assume that i) number of a's are equal ...
Q: the "pointer" is one of the VB tools * false O true the "picture box" used to draw any picture and g...
A: 1. Answer:False pointer is not a one of the VB tools
Q: Find lower bound for f(n) = 5n?.
A: let us see the answer:- Introduction:- Let L(n) be the running time of an algorithm A(say), then g(n...
Q: ation layer protocols with their objectives, stren
A: 5 application layer protocols with their objectives, strengths and limitations?
Q: What are some of the commercial uses for Google Maps' "street view"?
A: Introduction: As a component of Google Maps and Earth, the Street View technology offers interactive...
Q: Assume the creator of an online banking system has developed a hidden function that sends him accoun...
A: Due to the fact that the application was disguised and triggered only when the account balance excee...
Q: What is the meaning of the term "direct access device" in relation to magnetic disks?
A: Introduction : The purpose of the offered inquiry is to ascertain why magnetic discs are referred to...
Q: Identify if possible the type of addressing modes for the following instructions. 1. MOV BX, [DI + ...
A: Let's understand what is addressing mode first :- As we know that we have to perform the operations...
Q: there are five methods to set the properties for any object * true false
A: As per our company guidelines, we are supposed to answer the first answer in multiple questions. So,...
3.
Step by step
Solved in 4 steps with 5 images
- Write a program in java that randomly fills in 0s and 1s into an n-by-n matrix, prints the matrix, and finds the rows and columns with the most 1s. (Hint: Use two ArrayLists to store the row and column indices with the most 1s.)Write a program that reads an array A of N elements containing only 0's and 1's. Your program should find the position of a 0 and replace it with a 1 to get the longest continuous sequence of 1's. Let this position of 0 be called P. Print P if such a 0 exists and print -1 if the original array A contains only 1's. Assume the array indexing starts from 0.Write a program that reads an integer array a[] from the console and writes out the subsequence of the array that sums to the largest value. If there are more than one such subsequence, then the program should write out the subsequence that starts at the smallest position in the array and, if there are more than one subsequence of largest sum starting at the same smallest position, it should write out the shortest such subsequence.
- Write a program that plots a histogram of the subarray sizes leftfor insertion sort when you run quicksort for an array of size N with a cutoff for subarrays of size less than M. Run your program for M=10, 20, and 50 and N = 105Write a java method called SearchKey that return the indices of the first and the last occurences of an element k in an array.The function should Return [-1,1] in case the element was not foundWrite a program (in mars ) maxarray that computes the double of maximum of values of any given array of length L=7. The computation of the maximum is done in a procedure. For example : if the values in the array are : 14, 5, 85, 17, 9, 1, 47. The result is 170.
- write a java program that implements the insertion sort algorithum that sorts list of doubles in the range of [0,500). use array objects that use to contain the listWrite a program that prompts the user to enter an integerm and find the smallest integer n such that m * n is a perfect square. (Hint:Store all smallest factors of m into an array list. n is the product of the factors thatappear an odd number of times in the array list. For example, consider m = 90,store the factors 2, 3, 3, and 5 in an array list. 2 and 5 appear an odd number oftimes in the array list. Thus, n is 10.) Here are some sample run: Enter an integer m: 1500 ↵EnterThe smallest number n for m * n to be a perfect square is 15m * n is 22500Write a program that fills an integer array of size 1000 with random positive integers between 1 and 10.Assume that each element represents a different city and the integers stored in the array represent thenumber of golds in those cities. The program traverses over the array and collects the golds at each city,starting from a random position. When the program visits a certain city, all of the golds are collected,and the visited element of the array becomes 0 (no gold is left at that city.) The journey continues withthe rule given below. If the position at the nth step is denoted by pn, and the number of golds at the citypn is denoted by gn,??+1 = {| ((??−1 + ?? + ??) ???1000|, ????? 2 = 0| ((??−1 + ?? − ??) ???1000|, ????? 2 = 1.The program continues visiting cities until the last three visited city has no gold.The program, at each visit, should print out the following information:• The current city index (pn).• The previous city index (pn-1).• The number of golds at the current city…
- Consider an array A of N values (N entered by the user). Write a C program that creates a second array B such that the i-th element of B, i.e., B[i] is equal to A[0] *A[1] * A[2] * ... A[i]; In other words:- B[0] = A[0]- B[1] = A[0] * A[1];- B[2] = A[0] * A[1] * A[2];- B[3] = A[0] * A[1] * A[2] * A[3]- ....etc.For this exercise, we would like to implement two solutions and compare their complexity /performance in terms of computation time.Solution 1: Implement blindly the following algorithms: for each element B[i], compute A[0] *A[1] * A[2] * .... *A[i] and save the result in B[i];To test the solution, create an array A of 1000 elements and initialize each of its elements with arandom value (instead of asking the user to . To do that, use the function rand, which, every timecalled, returns a random number Questions:- How long does your program take to produce the solution?- Analyze the solution above and explain why it is taking long time. What are the mainfactors that affect how long…FOR JAVA Write a Java method that takes two 2 dimensional int arrays (a and b) and a 2 dimensional boolean array (c) where all three arrays have the same size. Your method should return an array (result) such that, if a partic- ular element in c is true, then the corresponding (same indexed) element in result must be the multiplication of the the corresponding elements of a and b. If the element in c is false, then the the corresponding element in result must be the negative of multiplication of the the corresponding element in a and b. For example ifa = {{1,2,3},{4,5}},b = {{1,2,1},{0,2}} andc = {{true,false,true},{false,true}}, then the result should be result={{1, -4, 3}{0, 10}}.Write a program that will load 100 integers into array X. Separate the even from the odd valued elements. The procedure should place the even values in ascending order stating from the first location of the original array and place the odd values in ascending order starting from the last position of the original array.