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
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
Using the localized electron model, decribe the bonding in hydrogen cyanide and phosgene
P(z<1.46)
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
Akosua works as the customer service officer at the Agarwal Eye Clinic located in Tesano, a suburb of
the Greater Accra region. The number of requests from male patients for emergency eye treatment that
she receives during any day may be modeled by a poisson distribution with mean of 2.6.Find the
probability that the number of requests from male patients for emergency eye treatment that Akosua
receives on a particular day is;
(i) Exactly 4
(ii)At least 1
(b) Find the probability that the number of requests from male patients for emergency eye
treatment that Akosua receives during a period of 5 days is 15 or fewer
A sample of ammonium sulphate was heated with 100.0 mL of 0.50mol/L aqueous sodium hydroxide. To ensure that all the ammonium sulphate reacted, an excess of sodium hydroxide was used. Heating was continued until all of the ammonia had been driven off as a gas. The unreacted sodium hydroxide remaining in the solution required 27.3 mL of 0.600mol/L hydrochloric acid for neutralization. Calculate the concentration of the ammonium salt.
. A new machine is being considered to replace the old machine being used. This new machine was tested for 10 consecutive hours with the following output: 119, 122, 118, 122, 120, 124, 126, 125, 125, and 124. If the average output per hour using the old machine is 120 units, is the management justified in stating that the output per hour can be increased with the new machine? Use a 0.01 level of significance.
An educational researcher found that the average entrance core of the incoming freshmen in a university is 84. A random sample of 24 students from a public school was then selected and found out that their average score in the entrance exam is 88 with a standard deviation of 16. Is there any evidence to show that the sample students from public school performed better than the rest in the entrance examination using the 0.01 level of significance?