Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with this homework. Can you read the question and help me to do the co

ID: 3887805 • Letter: N

Question

Need help with this homework. Can you read the question and help me to do the coding and also, can you explain what you are doing in each line of this code?

Also can you please type the answer. Thank you

Pr ogr amming Assignment: Abstract Data Type - Matrix The purpose of this course is 1. identification of the appropriate ABSTRACT DATA TYPE (model and 2. selection of the best DATA STRUCTURE and corresponding AlGORITHMS to provide you with experience in: operations) to use for a given application to implement the ADT in a programming lan plications in mathematics, economics, engineering, There are many applications in mathematics. ecco etc. in which the underlying model is a matrix . Consequently, it woul implement this ADT. The special case of a 2 x 2 matrix will be considered MODEL: t general form of a 2 x 2 matrix is: a11 a12 2.5 3-7 example: a21 a22 4 a11, a12, a21, and a22 are real numbers (scalars) that are the CoMPONENTS (or ELEMENTS) of the matrix. where: OPERATIONS: the following are some of the common operations that are performed on such matrices: matrix addition: Ia11 a12 ! a21 a22 ! a11 b a12 b12 a21 b2a22 b22 b11 b12 b21 b22 matrix subtraction: a11 -b a12 b12! a21-b a22b22 " a11 a12 : b1 b12 ! a21 a22 b21 b22 scalar multiplication: a1 a 12 k x a11 x a12' a21 a22 k x a21 k x a22

Explanation / Answer

Computer code is essentially a list of instructions that can be run by a certain program. Most code consists of plain-text documents so they can be used for many different programs. A unique file extension is given to the document to indicate the nature of the code. For example, a file created using Python is saved with a .py extension, like 'myprogram.py.' However, the actual content of the file is still just plain text.

Because most code is in plain text, you can write code using a basic word processor or text editor. However, it is much more effective to use a software application that is specifically designed for coding in a particular language. For example, when you write a document in plain English, you would use word processor software, which can assist you with things such as formatting, spelling, and grammar. Similarly, a code editor provides tools such as syntax checking. Syntax is to code what spelling and grammar are to writing English.

A code editor is also called an integrated development environment, or IDE. An IDE is a software application for formatting your code, checking syntax, as well as running and testing your code. Some IDEs can work with multiple programming languages, while some are very specific for only one language.v