Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a C++ program that creates a 2D array having 4 rows and 4 columns. Then, ask the user to


input values for the 2D array or matrix. After that, the program should calculate transpose of a


matrix. Transpose is basically calculated by changing rows of matrix into columns and columns


into rows. After calculating, display the final matrix.

Please refer new input and output given below, please include the solution


Area of Square

Given an MxN matrix filled with



X's and O's, find the largest square containing only X's and return its area. If there are no Xs in the entire matrix print 0.Input

The first line of input will be containing two space-separated integers, denoting M and N.

The next M lines will contain N space-separated integers, denoting the elements of the matrix.


Input:


3 6

O X X X X X

O X X X X X

O X X X X X


Expected Ouput: 9




Hi, Please refer new input and output as given below. include new input also



Add two polynomials

Given two polynomials A and B, write a program that adds the given two polynomials A and B.

Input


The first line contains a single integer M.

Next M lines contain two integers Pi, Ci separated with space, where Pi denotes power and Ci denotes co-efficient of Pi for polynomial A.

After that next line contains a single integer N.

Next N lines contain two integers Pj, Cj separated with space, where Pj denotes power and Cj denotes co-efficient of Pj for polynomial B.

Output





Given Input:


4

0 5

1 0

2 10

3 6

4

0 -5

1 0

2 -10

3 -6


Expected Output: 0




Which of the following applications are more sensitive to delay,



bandwidth and both, and WHY? i. Watching video on YouTube ii. Video call with your friend on Skype iii. Web suffering iv. Sending e-mail v. Sending audio message through WhatsApp

Elle Joy Vasquez 2


Create a Python script that will display the next 5 numbers in the sequence where each number is the sum of the previous two.


TEXT FILE


8 3


4 5


6 2


Output


8 3 11 14 25 39 64


4 5 9 14 23 37 50


6 2 8 10 18 28 46

Elle Joy Vasquez 1


Create a Python script that will display the SUM of all even and the SUM of all odd numbers in a text file.


TEXT FILE


20


4


15


30


5


OUTPUT


SUM OF EVEN: 54


SUM ODD: 20

(1) Write a program that will ask for a price.



(2) If the price is greater than 1000, compute a 10% discount from the original price. Display the computed discount.



(3) If not, just display the original price.

Write a python program for check the given digit is repeated how many times in the given number

a) Write a C program that reads marks of 10 students in to a single subscripted array. b) Above marks should be between 0 to 20. Modify the above program to add marks to the array only if the input mark is between the given range. c) Display the values stored in the array


Class Counter

-define the data members as per the given specifications.

-define the constructor with public visibility.

-the array data will contain 0 or 1 always.

-Implement the below methods for this class:

-String getCount():

ยท Write a code that gives the output on the below conditions -

1. If the count of zeros is even and the count of one is also even then return "Great".

2. If the count of zeros is odd and the count of one is also odd then return "Great".

3. If the count of zeros is even and the count of odd then throw ExceptionOne with a message "One comes odd times".



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS