## Write a C program that uses scanf to read in rows and columns and declares a 2D array using those

Write a C program that uses scanf to read in rows and columns and declares a 2D array using those values. The main program also uses scanf to read in the values to store in the 2D array. Then, create a function Transpose to print both the original matrix and the transpose of the matrix. NOTE: The transpose of a matrix is an operator which flips a matrix over its diagonal, i.e., it switches the row and column indices of the matrix. This matrix: 492 715 382 After being transposed, becomes this mat

## 1 The Collatz sequence is generated with the following algorithm Start with an integer n If n is

The Collatz sequence is generated with the following algorithm. 1. Start with an integer n. 2. If n is even, divide by 2. 3. If n is odd, multiply by 3 and add 1. 4. Repeat this process with the new value of n, terminating when n = 1. For example, starting with n = 11, the following sequence of numbers will be generated: 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. Write a MIPS program that prompts the user to enter the starting value n and prints the Collatz sequence. An example run i

## Using C implement the PersonStudentEmployeeInstructorAdministrator hierarchy of classes that

Using C++, implement the Person/Student/Employee/Instructor/Administrator hierarchy of classes that we used for an example of inheritance at the beginning of the course. There will also be a new class Course that describes a course that a student can take or an instructor can teach. All of these classes will descend from the abstract class A2ListItem, which has the following abstract behaviours:virtual int get_id() returns an integer that is used to search or order a sorted list of objectsvirtua

## Write this in Python The goal of this project is to practice your Application and Transport Layer

Write this in Python: The goal of this project is to practice your Application and Transport Layer skills by implementing (i) a cache service for file exchange, and (ii) two reliable data transport protocols. The project will be completed in two phases. In the first phase, all students will implement two versions of the program: one that uses stock TCP1 for reliable data transfer; and one that implements stop-and-wait (SNW) reliability at the application layer and uses UDP for transport. In the

## The department of Computer Science has requested from you to design a degree audit application for

The department of Computer Science has requested from you to design a degree audit application for ComputerScience students so that they can follow they degree programs. The application has two input file (a) the Studyplan for the BSc program “Degreeplan.csv” and (b) student transcripts “Transcript_Sid.CSV” as shown in thesample data in page 3. For more information about the degree plan, you can download the degree plan for yourcohort in the department website. For simplicity, the code for elect

## Create a in c program that does the followingAsks the user for the card that has been played on

Create a in c++ program that does the following:Asks the user for the card that has been played (on the table). Hint: pick one card and get it working, then add a second, then a third. You can also give the user one of several choices to pickAsk the player if they have whatever card (or cards) you think is appropriate.Use a boolean variable to hold the value of whether or not they have a cardMakes a statement that confirms what the user enteredIncludes at least 3 if/else statements to branch