It is a Simple interest problem .
principle = $16
rate = 5%
time = 1 year
simple interest = PRT/100
= (16 x 5 x 1)/100
= 4/5
= $0.80
amount after 1 year = 16 + 0.80 = $16.80
Answer:
nElements = 0;
for (int i = 0; i < a2d.length; i++)
nElements += a2d[i].length;
isRectangular = true;
for (int i = 1; i < a2d.length && isRectangular; i++)
if (a2d[i].length != a2d[0].length)
isRectangular = false;
Step-by-step explanation:
2 dimensional array is created and initialize element with 0. and the taking loop for 2 dimensional array .such as
n Elements = 0;
for (int i = 0; i < a2d.length; i++)
n Elements += a2d[i].length;
A boolean variable isRectangular and 2 dimensional array has been created if rectangle is true the take a2d.length and isRectangular less than i and intiliaze i with 1 then increment the i .It will give true value.
If rectangular is false then apply if statement and see if a2d[i] is not equal to a2d[0]
if (a2d[i].length != a2d[0].length)
isRectangular = false;
Step-by-step explanation:
We khow the sum and the product of the zeroes of this quadratic polynomial
Here is a trick :
when we khow the sum S and the product P ofvtwo numbers we can find them by solving :
x²-Sx+p=0
here S= -8 and P=12
so:
x²+8x+12=0
Let Δ be the discrminant of this equation: a= 1 , b= 8 and c=12
Δ= 8²-4*12 =16
the zeros are:
(-8-4)/2= -6
(-8+4)/2 = -2
verify:
-6+(-2)= -8
-2*(-6)= 12
now the polynomial quadratic is:
(x+6)(x+2)
The answer to your question should be
B) 20$
Good luck, hope it helped!