Java 1
Question 20
What will be printed by the following code?

String str = "Have a nice day!";
System.out.println(str.length());

a. Have a nice day
b. 16
c. 13
d. Have
e. 4

Question 21
Examine this code:

String str = "Hello World!" ;

What is the index of the character 'W'?

a. 6
b. 7
c. 5
d. 8
e. 2

Answers

Answer 1

Answer:

Q20     b.16

Q21      a.6

Step-by-step explanation:

count charcters  Have a nice day!  ==16

Q21    why 6

because index start with 0 and not 1

just count

H ==> 0

e==> 1

l==> 2

.

.

W=>6


Related Questions

What are the factors of the trinomial 3x^2 + 16x + 5? Show your work analytically

Answers

Answer:

3x+1 and x+5 are the factors

Step-by-step explanation:

Here's the slide-and-divide method to find the factors:

[tex]3x^2+16x+5[/tex]

[tex]\frac{3x^2}{3}+16x+5(3)[/tex]

[tex]x^2+16x+15[/tex]

[tex](x+1)(x+15)[/tex]

[tex](3*x+1)(x+\frac{15}{3})[/tex]

[tex](3x+1)(x+5)[/tex]

Solve 12 + 5= 7.
A. x = -2 and x = 12
B. x = -2 and x = -12
C. X = 2 and x = -2
O D. x = 2 and x = = -12

Answers

Answer:

if you mean 12-5=12 this answer is x=144

here is the step by step explanation.

Step-by-step explanation:

Rearrange:

Rearrange the equation by subtracting what is to the right of the equal sign from both sides of the equation :

x/12-5-(7)=0

Step by step solution :

STEP

1

:

x

Simplify ——

12

Equation at the end of step

1

:

x

(—— - 5) - 7 = 0

12

STEP

2

:

Rewriting the whole as an Equivalent Fraction :

2.1 Subtracting a whole from a fraction

Rewrite the whole as a fraction using 12 as the denominator :

5 5 • 12

5 = — = ——————

1 12

Equivalent fraction : The fraction thus generated looks different but has the same value as the whole

Common denominator : The equivalent fraction and the other fraction involved in the calculation share the same denominator

Adding fractions that have a common denominator :

2.2 Adding up the two equivalent fractions

Add the two equivalent fractions which now have a common denominator

Combine the numerators together, put the sum or difference over the common denominator then reduce to lowest terms if possible:

x - (5 • 12) x - 60

———————————— = ——————

12 12

Equation at the end of step

2

:

(x - 60)

———————— - 7 = 0

12

STEP

3

:

Rewriting the whole as an Equivalent Fraction :

3.1 Subtracting a whole from a fraction

Rewrite the whole as a fraction using 12 as the denominator :

7 7 • 12

7 = — = ——————

1 12

Adding fractions that have a common denominator :

3.2 Adding up the two equivalent fractions

(x-60) - (7 • 12) x - 144

————————————————— = ———————

12 12

Equation at the end of step

3

:

x - 144

——————— = 0

12

STEP

4

:

When a fraction equals zero :

4.1 When a fraction equals zero ...

Where a fraction equals zero, its numerator, the part which is above the fraction line, must equal zero.

Now,to get rid of the denominator, Tiger multiplys both sides of the equation by the denominator.

Here's how:

x-144

————— • 12 = 0 • 12

12

Now, on the left hand side, the 12 cancels out the denominator, while, on the right hand side, zero times anything is still zero.

The equation now takes the shape :

x-144 = 0

Solving a Single Variable Equation :

4.2 Solve : x-144 = 0

Add 144 to both sides of the equation :

x = 144

One solution was found :

x = 144

What is the answer to this?

Answers

Answer:

[tex]\frac{12}5[/tex]

Step-by-step explanation:

The easiest way to find the tangent is to calculate the ratio of opposite side over the adjacent, or [tex]\frac{12}5[/tex]

We know

[tex]\\ \sf{:}\Rrightarrow tan\Theta=\dfrac{Perpendicular}{Base}[/tex]

Now

[tex]\\ \sf{:}\Rrightarrow tanT=\dfrac{SU}{TU}[/tex]

[tex]\\ \sf{:}\Rrightarrow tanT=\dfrac{12}{5}[/tex]

Solve for x. Round your answer to the nearest tenth if necessary.
70°
6
X

Answers

Answer:

Tan 70 = opp/adj

Tan 70 = x/6

multiply by 6 on both sides

16.5 = x

A car factory made 41 cars. 20 of the cars had a sunroof. What is the ratio of the number of cars without a sunroof to the number of cars with a sunroof?

Write your answer as two numbers separated by a colon (for example, 2:3).

Answers

Answer:

21:20

Step-by-step explanation:

Since there are 20 cars with sunroof

Subtract 20 from 41

and you get 21 which are the cars with no sunroof

making it 21:20

Answer: 21 : 20

Step-by-step explanation: Since the factory made 41 cars and 20 of them had a sunroof that means x = 41 -20. So 41 - 20 = 21 cars without sunroof. They ask to put the ratio with cars without sunroof first then cars with a sunroof so it would be 21 : 20.

(x = cars without sunroof)

Write the inequality that represents the solution set to the given inequality below.

−8≥x−2≥10

Group of answer choices

4≤x≤−5


−4≤x≤5


4≥x≥−5


−4≥x≥5

Answers

Answer:

-6[tex]\geq[/tex]x[tex]\geq[/tex]12

Step-by-step explanation:

I can't match it to one of your solutions but I can explain this:

-8[tex]\geq[/tex]x-2[tex]\geq[/tex]10

We can add 2 to each side to eliminate the -2 in the centre.

-6[tex]\geq[/tex]x[tex]\geq[/tex]12

help! ignore pencil work! any comment with a link or answer that dosnt relate or i found out later that thats the wrong answer will be deleted! PLEASE SHOW WORK

Answers

Answer: x = 13, Angle ABE = 51°

Step-by-step explanation:

Since angle ABC is 90° and angle EBC is 39°, subtract them.

90° - 39° = 51°

This means that angle ABE equals 51°. Plug in 51° as the y in the equation y = 3(x+4).

51 = 3 (x + 4)

Multiply 3 by x and 4.

51 = 3x + 12

Subtract both sides by 12.

39 = 3x

Divide both sides by 3.

x = 13

HELP FAST!!! MARKING BRAINLIEST!!!
Prove the following theorem:
Given 3 different lines a, b, and c. If a is parallel to b (a║b), and c intersects a (c∩a), then prove that c intersects b (c∩b).

Answers

Answer:

Well, I think this is correct:

Well, if we know that a and b are parallel, that means they have the same slope but different y-intercept.  So, if c and a intersects, then c and b are bound to intercept, because when c intersects with a, it will also cross b, since it will be going in the same route...which will make it also intersect with b. (crossing.)

Sorry if I'm wrong.

Hope this helps! :)

Write an equation in point-slope form that has a y-intercept at (0, 12) and also contains the point (1,2)

Answers

Answer:

y-2=-10(x-1).

Step-by-step explanation:

The point slope form is y-y_1 = m(x-x_1). Now we find the slope, which is 2-12 (-10)/1-0(1). This gives us -10. Now we plug the coordinates from one of the points and the slope to get y-2=-10(x-1).

Select the correct expression

r less than 52

Answers

Answer:

no because r is a varible that dont have number

The correct expression of  r less than 52 is r<52.

What is Expression?

An expression is combination of variables, numbers and operators.

The given expression is r less than 52

We have to write in the form of inequality

A relationship between two expressions or values that are not equal to each other is called 'inequality.

The less than represents the relationship between r and 52

In the given expression r is the variable

r<52 is the required expression or inequality

Hence, the correct expression of  r less than 52 is r<52.

To learn more on Expressions click:

https://brainly.com/question/14083225

#SPJ3

HELP ASAPPP!
Ava has $30 for a cab ride. It costs $3.50 for the cab to pick her up then $1.50 per mile after the initial pick-up fee. Which inequality best represents the real-world situation?

Answers

Answer: [tex]1.50x+3.50\leq 30[/tex]

Step-by-step explanation:

x represents how many miles after the pick-up. we add on 3.50 because that is the intial pick-up price. then the cost has to be under 30 because she only has 30 dollars

Find the value of x to the nearest tenth. Show all
the work

Answers

Answer:

x is 15.0

Step-by-step explanation:

We can use pythagorus theorum to find the missing side of the triangle.

a² = b² + c²

a² is the longest side of the triangle, so a= 8.

b² (or you can even take c²) is one of the two sides, so b= 3

We have to find  c². So make c² the subject of the equation.

c² = a² - b²

c² = 8² - 3²

c² = 64 - 8

c² = 56

∴ c = [tex]\sqrt{56}[/tex] = 7.48 (in 2 decimal place / 3 significant figures)

Now we can assume that c is half of x.

So x = 7.48 + 7.48 = 14.96

∴ x = 15.0 (to the nearest tenth).

If you subtract 17 from my number and multiply the difference by ​-2, the result is ​-10." What is the ​number?

Answers

Answer:

22

Step-by-step explanation:

-10/-2 is 5

5+17 is 22

167<6+7(2+7r)
what is it please help

Answers

Answer:

3 < r

Step-by-step explanation:

167<6+7(2+7r)

distribute the 7 to the 2 and 7r

7 * 2 = 14 and 7 * 7r = 49r

167 < 6 + 14 + 49r

combine like terms: 6 + 14 = 20

167  < 20 + 49r

subtract 20 from both sides

147 < 49r

divide both sides by 49

3 < r

I really need help with this, and also if it's Substitution or linear combination and it will be really helpful if you do step by step please. ​

Answers

Answer:

-2x+y=12

Step-by-step explanation:

linear equation

PLEASE HELP I WILL GIVE BRAINLIEST IF YOU ARE CORRECT
Which of the following is a function equivalent to
f(x)=3(1.2)4x ?

Group of answer choices

f(x)=3(2.01)x


f(x)=3(2.07)x


f(x)=3(4.8)x

f(x)=12(1.2)x

Answers

Answer:

f(x)=12(1.2)x

Step-by-step explanation:

3x - y = 23
2x + 3y = 8​

Answers

Answer: x = 11

Step-by-step explanation:

You didn't state what you needed for these problems so I'm going to assume you need to solve for X.

1st Equation:

3x - y = 23 --> y = 3x - 23

2nd Equation:

2x + 3y = 8 --> (3y = 8 - 2x)/3 = y = 8/3 - 2x/3

Set Equations = to Each other

3x - 23 = 8/3 - 2x/3 --> 3x - 2x/3 = 8/3 + 23

9x/3 - 2x/3 = 8/3 + 69/3 --> 7x/3 =77/3

7x/3 X 3/7 = 77/3 X 3/7

x = 11

If you need to solve for y as well plug the x value back into the original equation and solve.

Which value of x makes the equation 2(x-9)-2x=-3(3+7) true?

Answers

Answer:

No solution

Step-by-step explanation:

help with this problem pls

Answers

Answer:6_1/4

Step-by-step explanation:

They are different by a multiple of 3, for example, 3_1/4 * 3 = 9_3/4, etc.

This means that you just have to divide 18_3/4 bu 3, which is 6_1/4

At a delicatessen there were 20 different kinds of cheese and 30 kinds of meats. What is the ratio of cheese to meats at this delicatessen?

Answers

Answer:

2:3

Step-by-step explanation:

Simply divide each by 10

20/10=2

30/10=3

and your ratio is 2:3

If Mrs. Hill takes out a mortgage for $80,000 with a 4% interest rate, what will her interest be after 20 years? Help ASAP I’ll give so much points!

Answers

Answer:

After 20 years, Mrs. Hill is owed $144,000.

Step-by-step explanation:

Using PRT/100, we can find the interest Mr. Hill has to pay extra.=> 80000 x 4 x 20/100=> 800 x 4 x 20=> 3200 x 20=> 64000Total amount to pay: $144,000

Conclusion:

Therefore, after 20 years, Mrs. Hill is owed:

$144,000.

Hoped this helped.

[tex]GeniusUSer[/tex]

Help bell math math math

Answers

Answer:

54

Step-by-step explanation:

C=πd

π=3

d=18

C=3×18

Therefore C=54

Answer:

c=54

Step-by-step explanation:

there are 6 cups of sugar in 5 batches of cookies. how many cups are in 1 batch

Answers

Answer:

1.2 cups

Step-by-step explanation:

6 cups / 5 batches = 1.2 cups/batch

Pythagorean Theorem Question! Please help

Answers

Answer:

It is the fourth one.

Step-by-step explanation: You use it to find it to see if it is a right triangle.

Tell whether the ordered pair is a solution to the equation please show how you solve it.


(3,2); x+6y = 13

Answers

Answer:

The ordered pair is not a solution as both sides of the equation do not equal each other.  

Step-by-step explanation:

(3,2);  x + 6y = 13

(3) + 6(2) = 13

3 + 12 = 13

15 = 13

solutions of the quadratic $x^2 + 7x - 18 = 0.$

Answers


(x^2+7x-18) can be factored into (x+9)(x-2). Set each part equal to zero and solve for x.

x+9=0 => x=-9
x-2=0 => x=2

I’m guessing the dollar signs aren’t supposed to be there.

The solution of the quadratic equation x² + 7x - 18 = 0 will be 2 and negative 9.

What is the solution to the equation?

The allocation of weights to the important variables that produce the calculation's optimum is referred to as a direct consequence.

The quadratic equation is given as ax² + bx + c = 0. Then the degree of the equation will be 2.

The quadratic equation is given below.

x² + 7x - 18 = 0

Factorize the quadratic equation, then we have

x² + 7x - 18 = 0

x² + 9x - 2x - 18 = 0

x(x + 9) - 2(x - 9) = 0

(x + 9)(x - 2) = 0

x = 2, -9

The arrangement of the quadratic condition x² + 7x - 18 = 0 will be 2 and negative 9.

More about the solution of the equation link is given below.

https://brainly.com/question/545403

#SPJ2

Which is an equation of the line through the origin and (-5,6)?
A. y=-5/6x
B. y=-6x
C. y=-5x
D. y=- 6/5x

Answers

Answer:

y=-6/5x

Step-by-step explanation:

What are the solutions of the following system?
=
[x2 + y2 = 25
2x+y=-5
(0, -5) and (-5,5)
(0, -5) and (5, -15)
(0, -5) and (-4,3)
O (0,-5) and (4, -13)
What is it?

Answers

Answer:

Third option: (0,-5) and (-4,3)

Step-by-step explanation:

x^2 + y^2 = 25

2x + y = -5

y = -5 - 2x

x^2 + (-5-2x)^2 = 25

x^2 + 25 + 20x + 4x^2 = 25

5x^2 + 20x + 25 = 25

5x^2 + 20x = 0

5x(x+4) = 0

5x=0 --> x=0

x+4=0 --> x=-4

2(-4) + y = -5

-8 + y = -5

y = 3 --> (-4,3)

2(0) + y = -5

0 + y = -5

y = -5 --> (0,-5)

Therefore, the solutions to the system of equations are (0,-5) and (-4,3)

help ita due in 5 mins

Trapezoid GHIJ is located in the coordinate plane at points
G(0,0),H(−1,2),I(3,2),and J(2,0).
Three transformation scenarios are described.

1. Reflect GHIJ in the x-axis and then reflect that image in the y-axis.

2. Rotate GHIJ 90º counterclockwise about the origin and then translate that image 2 units up.

3. Dilate GHIJ by a scale factor of
1
2
centered about the origin and then translate that image 2 units to the left.

Which transformation(s) produce an image that is congruent to the given figure?


Number 1 only

Number 1 only

Numbers 1 and 2

Numbers 1 and 2

Numbers 2 and 3

Numbers 2 and 3

Numbers 1, 2, and 3

Numbers 1, 2, and 3

Answers

A rigid transformation is one in which the distance between pairs of points

are preserved, and the image and preimage have the same dimensions.

The transformations that will produce an image that is congruent to the given figure is; Number 1 and 2.

Reasons:

The vertices of the trapezoid GHIZ are G(0, 0), H(-1, 2), I(3, 2), and J(2, 0)

The given transformations are;

1. GHIJ is reflected in the x-axis and the image is reflected in the y-axis

The above transformation is a double reflection.

2. GHIJ is rotated about the origin 90° counterclockwise. The resulting

image is translated up 2 units.

3. GHIJ is dilated by a scale factor of [tex]\mathbf{\frac{1}{2}}[/tex], with the center of dilation at the

origin. The resulting image is translated 2 units left.

Required:

The transformations that produce an image that is congruent to the given figure:

Solution:

Two figures are congruent if they have the same size and shape.

With the given figure being the trapezoid GHIJ, we have that a

transformation that will give an image that is congruent to the preimage

which is the trapezoid GHIJ is a rigid transformation.

Rigid transformations are;

ReflectionRotationTranslation

The combinations of transformation given within the scenario that consists

of only rigid transformations are scenario 1 and scenario 2.

Therefore, the correct option is; Numbers 1 and 2.

Learn more about rigid transformation here:

https://brainly.com/question/1801406

Solve for x when 4x+16/12=x-4

Answers

Answer:

In short, Your Answer would be either 1 or 7

Step-by-step explanation:

|4x + 12| = 16

As it is in modulus function, it could be either +ve or -ve

4x+12 = 16   OR   4x - 12 = 16

4x = 16-12    OR   4x = 16 + 12

4x = 4           OR   4x = 28

x = 4/4     OR  x = 28/4

Other Questions
What is the volume of this solid?Most Precise Answer = Round to the nearest hundredthApproximate Answer = Round to the nearest tenth if necessary please help im dead fr gonna cry Help!! Ill give 100 points! What do biologists call the specialized cells in the nervous system that detect heat, pressure, and other environmental stimuli? A. first responders B. mitochondria C. receptors D. organelles The set of ordered pairs shown below defines a relation. (MAFS.912.F-IF.2.4){(0, 0), (1, 5), (2, 8), (3, 9), (4, 8), (5, 5), (6, 0)}What is the value of the greatest element in the range of this relation? The table and graph both represent the same relationship. which equation also represents that relationship? 28) what is the number of oxygen atoms in the formula unit of Ca3(PO4)2? HELP!!!!Solve, 4/9 - 4/10 Which word is a synonym of prestigious? PLEASE HELP!!! Find the Least Common Multiple of these two monomials:12a^4b^2c^5 and 40a^3b^7c^1 Define Rough calculating Which sentence correctly completes this conversation? Juan: Qu ests sirviendo? Pedro: _______________A. Estn sirviendo la comida.B. Estoy sirviendo la comida.C. Est sirviendo la comida.D. Ests sirviendo la comida Compare sodium and silver before and after they are placed in water. Has a new substance been produced in each case? How did Jefferson views differ from the views of Federalist Party am i crazy or are none of these right someone help please In the modern periodic table elements are arranged in order based on the number of: I willl mark brainiest plz answer send right answer get points How to solve math equation lesson 5 practice problems Christopher Columbus was a born in Italian but was _____ by Spain for explorationA. ImprisonedB. PunishedC. KilledD. Sponsored