Homework Answers

Math 50414
Physics 44332
Chemistry 40988
Economics 30643
Programming & Computer Science 26876
Biology 8109
Engineering 6056

Questions answered by Experts: 207 418

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

Find the charge flowing q(t) through a device if the current is i(t) = 10 e-30t sin 40t A,

q(0) = 0


calculate the vapour pressure of a solvent above a solution containing 83.99g of solute of molecular mass 195 .62per 1000g of water 20°c is 17.53 mmhg

A firm manufactures two products; the net profit on product 1 is Birr 3 per unit and Birr 5 per unit on product 2. The manufacturing process is such that each product has to be processed in two departments D1 and D2. Each unit of product1 requires processing for 1 minute at D1 and 3 minutes at D2; each unit of product 2 requires processing for 2 minutes at D1 and 2 minutes at D2. Machine time available per day is 860 minutes at D1 and 1200 minutes at D2. How much of product 1 and 2 should be produced every day so that total profit is maximum. (solve with graphical method) Q3. Solve the following LP problem by graphical method: Maximise Z = 300X1 + 700X2 Subject to the constraints: X1 + 4X2 ≤ 20 2X1 + X2 ≤ 30 X1 + X2 ≤ 8 And X1, X2 ≥ 0 Q4.

Write a method called isIdentityMatrix which will take a two-dimensional integer

array as argument, and returns true if the array is an identity matrix, or false otherwise.

You may use the following header for this method:

static boolean isIdentityMatrix(int[][] array)

A matrix is an identity matrix if it is a square matrix, and all its elements at the left

diagonal are ones, and all other elements are zeroes.

For example, the following matrix is an identity matrix and the method should return true

if we pass it to the isIdentityMatrix matrix as two-dimensional:

1 0 0 0 0

0 1 0 0 0

0 0 1 0 0

0 0 0 1 0

0 0 0 0 1

For the following two-dimensional array, the method should return false because there

are some non-zero elements in the matrix.

1 0 0 5 0

0 1 0 2 0

0 3 1 0 0

0 0 0 1 5

0 5 0 0 1

Similarly, for the following two-dimensional array, the method should return false

because some elements at left diagonal are not ones.

1 0 0 0 0

0 0 0 0 0

0 0 0 0 0

0 0 0 1 0

0 0 0 0 1


Write a method called addMatrices which will take two matrices (two-dimensional

integer arrays) as argument, and returns the addition of these two matrices as a two-

dimensional integer array.

You may use the following header for this method:

static int[][] addMatrices(int[][] firstMatrix,

int[][] secondMatrix)

For example, if we pass the following two two-dimensional arrays to the method:

5 7 9 4 3 7 3 2 1 5

2 3 9 7 6 3 9 4 0 3

3 6 8 7 9 6 2 8 9 4

1 9 7 5 6 5 0 3 8 7

3 8 7 9 2 1 6 8 4 3

Then the method should return the following two-dimensional array:

12 10 11 5 8

5 12 13 7 9

9 8 16 16 13

6 9 10 13 13

4 14 15 13 5


2. Write a method called printArray that takes a two-dimensional integer array as

argument and prints all elements of array. The method should print each row line by line.

You may use the following header for this method:

static void printArray(int[][] array)

In the main method:

 Declare and initialize two two-dimensional arrays.

 Pass these two-dimensional arrays to addMatrices()method..


What is the theory of New Keynesian Economists?

In this task, you are being asked to write methods that manipulate arrays in Java.

1. Write a method called swapFirstAndLastRow which will take a two-dimensional

integer array as argument and swap all the values of first row and last row with each

other.

You may use the following header for this method:

static void swapFirstAndLastRow(int[][] array)

For example, if we pass the following two-dimensional array to this method:

5 7 9 4 3 1

2 4 9 7 6 5

3 6 8 7 9 4

1 9 7 5 6 3

Then the array will become:

1 9 7 5 6 3

2 4 9 7 6 5

3 6 8 7 9 4

5 7 9 4 3 1


2. Write a third method called printArray which will take a two-dimensional integer

array as argument and prints all elements of array. The method should print each row line

by line.

You may use the following header for this method:

static void printArray (int[][] array)


Take two numbers from the user as the size of rows and columns of the array and call the

methods in the following order:

 printArray()

 swapFirstAndLastRow()

 printArray


What is the theory of Real Business Cycle Economists?

What is the theory of New Classical Economists?


What is the theory of Monetarism Economists?

LATEST TUTORIALS
APPROVED BY CLIENTS