Suppose, you are given two matrices (A and B) as input, you have to perform the following tasks: I. Implement a function that will compute A × B Implement a function that will compute A + B Implement a function that transposes a matrix (for example A to A ") IV. III. Implement a function that will inverse a matrix (for example A to A') II. (If you do not know how to compute matrix addition, multiplication, transposition, and inversion, first learn those things. For simplicity you can assume the given matrices will be square matrices.] 1 = [, and B = %3D
Q: Inquire into the relationship that exists between a company's information system and the system as a…
A: Introduction: Flynn's taxonomy categorizes numerous parallel computer systems. Parallel computers…
Q: Write a for loop that displays all of even numbers, 2 through 128.
A: Please refer below for your reference: Language used is C++: #include <iostream> using…
Q: Is there a distinction between Class and Structure? Use an example to demonstrate your point.
A: Basics A class is utilized to indicate the type of an object and it joins information portrayal…
Q: Create a generic function print(ls, n) that prints to standard output the first n elements of list…
A:
Q: A binary code uses ten bits to represent each of the ten decimal digits. Each digit is assigned a…
A: We are going to write binary code uses ten bits to represent each of the ten decimal digits. Ten…
Q: create a program on c++ Topic - Scientific Calculator
A: Answer: Below are the CPP code that is satisfied your question, I have given the scientific…
Q: Assuming an 8-bit system is used (ie. the system uses 8 bits to represent an integer) -671-67 (i)…
A: This question comes from Number System which is a paper of Computer Science. Let's discuss it in the…
Q: Short answer Explain memory protection? Information technology
A: Introduction: Memory protection is first introduced: Memory protection is a security feature that…
Q: Which of the two data transfer technologies do you believe is the most effective? Is it better to…
A: Introduction: The direction of information flow between two communication devices is defined by the…
Q: In 1989, the American National Standards Institute (ANSI) and, in 1990, the International…
A: In 1989, the American National Standards Institute (ANSI) and, in 1990, the International…
Q: 3) If a binary digit 1101 is applied as an input to 7442, what would the output be ?
A: 7442 is a BCD to Decimal Converter
Q: What are the several levels of the Internet model?
A: Introduction: The internet model is made up of five layers of information.
Q: What are the uses of subnetting?
A: Intro Subnetting is a term used to describe a technique where the entire network is divided into…
Q: What are the advantages and disadvantages of a three-tier database architecture?
A: The most common client-server design in DBMS is the 3 Tier Architecture, which separates the…
Q: What part of the computer is in charge of collecting data from humans and other devices?
A: Intro Data capture devices are devices that help with the production and maintenance of ID card…
Q: What would happen if the referential integrity of a database was compromised? What are the most…
A: Referential integrity: It is the term used to describe the relationship between tables.Because each…
Q: What is the definition of a dimension table? What kinds of information are kept in dimension tables?
A: The dimension table is used in the data warehouse. The data which is stored in there tables are used…
Q: Write a program that reads your birthday (day-month-year). Calculate your age in (day - month -…
A: In the above code, it has been asked to print the age in day-month-year format, in the following…
Q: Term Class Fall Spring Sur ebpage Design MW 11:00 - 12:15pm TR 12:30 - 1:45pm Online vaScript M 5:00…
A: I Have given HTML code and for design, I have also written a CSS file:
Q: what Con ue con about Pufumona optimitotion Perm Andohl's low?
A: The Answer is in step-2
Q: Define the term "virtual functions" in your own words.
A: Define the term "virtual functions" in your own words.
Q: What will be the result of the following statement? Worksheets(1).Range("A1:A10").Value = 4
A: Solution:-
Q: What is the MAC sublayer's responsibility?
A: Introduction: Mac serves as a layer of abstraction between the physical layer and the LLC and above…
Q: What exactly is software-as-a-service (SaaS) ?
A: Introduction: Software-as-a-Service (SaaS) is a type of cloud computing service (SaaS)
Q: 1-The following program is supposed to add the contents of memory location 8000 h to the Accumulator…
A: Solution 1) The program is written here for carry Only , so we have to write for sum too The…
Q: Information technology Discuss and explain new features of cloud computing that support…
A: Introduction: Cloud computing Cloud computing allows users to access the same programs through the…
Q: What are the main distinctions between white box and black box testing? When do you employ the…
A: Differences between black box and white box testing: 1. Black Box Testing is also known as…
Q: HW10_3 A Using Newton's second law, it can be shown that the period T of a pendulum with length Land…
A: The MATLAB code is as follows
Q: Robotics Represent a schema, behavior, perceptual schema, and motor schema with an Object-Oriented…
A: Robotics is an interdisciplinary sector of science and engineering dedicated to the design,…
Q: Explain why adaptors are typically necessary when merging application systems to build systems.…
A: Introduction Adaptors are frequently necessary when businesses create new systems by combining…
Q: List and explain the commands that are easier to execute with a command-line interface than with a…
A: The command-line interface (CLI) transmits instructions to a computer application in the form of…
Q: - The step function u (t) is integral of with respect to time t.* OSinusoidal function O Ramp…
A: ANSWER:
Q: Suppose X is a subset of vertices in a G = (V,E). Give a polynomial-time algorithm to test whether…
A: A vertex cover of an undirected graph is a subset of its vertices such that for every edge (v, e) of…
Q: complete TODO's using Java
A: Previously I had made a project on this topic. I am providing the main java code. If any…
Q: Discuss briefly the various sorts of interrupts, and explain how interrupts are crucial to the…
A: Interrupt and it's type Interrupt is a signal sent to the CPU by hardware or software, normally I/O…
Q: I was able to do most of the program but it saws that the output for Chicago is incomplete or not…
A: Solutions: Java code: import java.util.Scanner; public class MichiganCities { public static…
Q: What exactly is Traceroute?
A: Introduction: After passing via a number of intermediary nodes, information goes from the…
Q: Assume a bus is 16 bits wide. The data and address lines are multiplexed, meaning that the bus must…
A: Solution:-
Q: What type of possible error messages you can get when you try to login with the ssh-loption?
A: Ssh-i : SSH stands for Secure Shell. Command is used for login to server /machine. The machine can…
Q: shat Con ue con about Pafermana optimizotion Peom Amdohl's Law?
A: According to Amdahl's rule, the overall performance increase realized by improving a single portion…
Q: Identify six potential dangers that might occur when systems are built utilizing current application…
A: Risks using existing application system Risk is defined as the probability of defining something…
Q: A virtual machine is perceived differently by the operating system and a user programme. What are…
A: A virtual machine's perceptions The operating system manages all virtual machines and is aware of…
Q: What is a federalTax?
A: The United States of America has distinct the federal, state, and local governments, each with its…
Q: python Write a function named first_medium_last that accepts a single string as its parameter…
A: def first_medium_last(name): #Our required function print(f"You have Enterd…
Q: What exactly is a Tuning Parameter in predictive modelling? What tuning parameters were applied…
A: Intro Forecasting future behavior using predictive modeling is a widely used statistical technique.…
Q: Consider the following scenario: you'd want to hire a contractor to produce a software package that…
A: Software is used in calculator: OpenOffice's spreadsheet software is called Calc. This includes…
Q: build a program topic - scientific calculator
A: Introduction: Here we are required to build a program for a scientific calculator. Since no specific…
Q: Java Computer Programming, make the deliverables fit into one program
A: public class Main{ static int computerOddSum(int [] array){ int sum = 0; // initalize sum to 0 for…
Q: What are the most critical decisions to be made when it comes to physical database design and how do…
A: Various critical decisions to be made when it comes to physical database design are: The client…
Q: What is the future role of object-oriented analysis and design? What Is Agile Methodology?
A: Intro software development has evolved significantly over the last decade. Agile methods have become…
Answer it only C++ only
Step by step
Solved in 4 steps with 2 images
- Declare two characters array And take input from user in first array and at last index take slach zero (/0) similarly we take input in second array and at end /0. And take another array and copy first array in this blank array and when we come to /0 then copy second array in blank array. Example First array (this is a) Second array (book) Blank array (this is a book) Don't use built-in functionsQ2: In this question, you will write a Python function to compute the Hadamard product of two matrices. The Hadamard product is the "component-wise" product of two matrices. That is, each entry of the product matrix is equal to the product of its corresponding entries of the input matrices. Here is an example: a11 a12 a21 a22 a23 a31 a13 SH a32 033 A b11 b12 b13 b21 b22 b23 b31 b32 b33. B = [an bu a21 b21 a31 b31 a12 b12 a22 b22 a32 b32 a13 b13 a23 b23 a33 b33. Hadamard product of A and B Write a Python function to compute the Hadamard product of two matrices as follows. a) The inputs to the function are two matrices. b) The function should check whether the two matrices have the same size. If not, it should print "The input matrices are not of the same size". c) If two matrices are of the same size, the function computes the Hadamard product and returns the answer. Use for loops to compute the Hadamard product.Complete this code using Python m1 = [] #Matrix 1m2 = [] #Matrix 2#Write a function that will return the addition of Matrix A and B.#Create a new matrix C that will hold the addtion result of Matrix A and B (A+B).#Return the resultant matrix Cdef addMatrix(A,B):#Write your code here#Write a function that will return the subtraction of Matrix B from A.#Create a new matrix C that will hold the substraction result of Matrix B from A (A-B).#Return the resultant matrix Cdef subsMatrix(A,B):#Write your code here#Write a function that will return the multiplication of Matrix A and B.#Create a new matrix C that will hold the multiplication result of Matrix A and B (A*B).#Keep in mind,in order to perform matrix multiplication, the number of columns in Matrix A must be equal to the number of columns in Matrix B. #Return the resultant matrix Cdef multipyMatrix(A,B):#Write your code here#Write a function that will transform matrix A to the transpose of matrix A.#The transpose of a matrix means…
- Write and test the “digit” function: Function Prototype: int digit(int n,int k)This function returns the kth digit of the positive integer n. For example, if n is the integer 29,415 that is entered by user , then the call digit(n,0) would return the digit 2, and the call digit(n,2) would returnthe digit 4. do this only by using functions and loops. arrays are not allowed. example :Input: n = 29415 , k = 1 output: 9 Input: n = 2 , k = 1 output: index out of bound (return -1)im having some trouble with this Requirements: Write a Python script that prompts the user for the length of a side of a polygon and prints a table of areas of several polygons. Sample output is shown below. Additional requirements: • Your program should use functions to organize the code. Implement these functions: - main The main function should call the function get_side_length and then send side_length to report. - get_side_length This function should prompt the user ("Input the length of a side: ") and return side_length to main as an int. - report This function should print a heading line ("side length...number of sides...area") and use a loop to print a table of values as shown in the sample output below. The report function should call polygon_area to calculate the areas needed for the table. The function report will have to call polygon_area once for each area that it needs to print. - polygon_area This function takes num_sides and side_length as parameters and returns the…Question: Given an array of integers, find the maximum and minimum elements present in the array. Your task is to write a function that takes an array of integers as input and returns the maximum and minimum elements as a pair of integers..
- Write a nToArray function which does the following:1. Accepts an empty partially filled array, the size of the array and an integer n as input parameters.2. Recursively extracts each digit of n and stores the digit into the array in forward order.3. Assumes the partially filled array has an infinite capacity.ExampleIf n is 2534 the array will contain the values 2,5,3,4. in c++C Programming 1.Enter an integer into n2.Use malloc to dynamically allocate an array of size n, the array name is data3.Enter n integers of any value4.Complete a function, int FindMax (the parameter is defined by yourself), use therecursion to find the largest value in the array, and return the position of thelargest value in the array5.Call FindMax() to find the maximum value Input: first line: integer nsecond line: n integers of any value output:Call FindMax():The maximum value is data[?] = ????Call RecursiveFindMax():The maximum value is data[?] = ???? E.g52 1 7 8 3Call FindMax():The maximum value is data[2] = 7Call RecursiveFindMax():The maximum value is data[2] = 72) Let array a be (5,49,8,7,3,12,0,6) and b be the last digit of your student number. Accordingly, if we run the given functions in the following order, what will be the output? Explain step by step. functionl (a, b); print (a, b); function2 (a, & b); print (a, b); void print(int a[].int b){ for(int i=0:i<10:i+){ printi"%d ",a[i]): printf("nb=%dn",b). void function1 (int a].int b){ a[b)=a[b]+b: b=b+2: void function2(int a[].int *b){ a[*b]=[*b]-*b:
- Please send me answer with in 10 min!! I will you rate you good for sure!! Please solve all the 4 parts!! Write a class named Homework in IntelliJ that implements:(1) A function that performs dot product between two vectors a and b:public static double dotProduct(double[] a, double[] b)(2) A function that performs matrix multiplication between aMat and bMat and returns theresult in cMatpublic static void matMultiply(double[][] aMat, double[][] bMat, double[][] cMat)(3) A function that takes a line (String) as input and breaks it up into words that may beseparated by space, comma or tab:public static String[] getLineWords(String line)(4) A main function that tests all the above functions and prints out the results. Code written (has errors, but this is the structure/ method I'm going for) public class Homework { public static double dotProduct(double[] a, double[] b) { double result = 0; for (int i = 0; i < a.length; i++) { result += a[i] * b[i]; } return result; } public static…Please do only A and B In this program, you should define an array of 10 elements in your data segment with these values:? = {11, 12,−10, 13, 9, 12, 14, 15,−20, 0}a. Write a function which finds the maximum value of this array.b. Write another function which calculates the summation of this array.c. Call these functions in your main program, and print the outputs of these functions to theuseri. “The maximum is 15”ii. “The summation is 56”d. What is the address that has been used by the simulator for this array?Write a menu driven C++ program that should perform following operation on matrices using 2D arrays. (Use OOP) The program will first take inputs for both matrices from the user then perform following operations on them: Add() This method will add two matrices. Subtract() This method will subtract two matrices. AddScalar() This method will add scalar to a matrix by asking user in which matrix to add. SubtractScalar() This method will subtract a scalar from a matrix by asking user in which matrix to add. Dont use pointers please use counters only.. Thank you very much.