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

Find the value of x.
A. 31
B. 25
C.5
D. 11

Answers

Answer:

D)  11

Step-by-step explanation:  

Explanation:  

Segment AC is the midsegment of the trapezoid (since A and C are midpoints of DE and FB respectively)  

This means that AC is the average of the two parallel bases EB and DF  

AC = (EB + DF)/2  

x = (9 + 13)/2  

x = 22/2  

x = 11

The value of x is 11.

What is mid point theorem?

The midpoint theorem states that the line segment joining the midpoints of any two sides of a triangle is parallel to the third side and equal to half of the length of the third side. This theorem is used in various places in real life, for example in the absence of a measuring instrument, we can use the midpoint theorem to cut a stick into half.

In math, we also have a midpoint theorem formula which has its applications in coordinate geometry. It can also be known as the midpoint theorem of a line segment. It states that if we have a line segment whose endpoints coordinates are given as (x1, y1) and (x2, y2), then we can find the coordinates of the midpoint of the line segment by using the formula given below:

Let (xm, ym) be the coordinates of the midpoint of the line segment. Then,

(xm, ym) = ( (x1 + x2)/2 , (y1 + y2)/2 )

This is known as the midpoint theorem formula.

As,  A and C are midpoints of DE and FB respectively

AC = (EB + DF)/2  

x = (9 + 13)/2  

x = 22/2  

x = 11

Learn more about mid point theorem here:

https://brainly.com/question/13677972

#SPJ5

To qualify for a certain car loan, a customer must have a credit score of at least 600. In addition, the cost of the car must be at least $5000. Define the variables, write a system of inequalities to represent this situation, and name one possible solution.

Answers

Answer:

c ≥ 600

p ≥ 5000

Step-by-step explanation:

Let :

credit score = c

Cost of car, p

To qualify :

Credit score must be atleast 600 ;

c ≥ 600

Cost of car must be atleast 5000

p ≥ 5000

Find the area of the triangle.
PLEASE HELP ASAP!

Answers

Answer:

D 111.4 cm²

Step-by-step explanation:

The scale on a map is 1 inch = 10 miles.
What is the distance, in inches, on the map
between two towns that are m miles apart?
F.
m/10
G. M/5
H.5m
J.10m
K.m+10

Answers

Answer:

F.  m/10.

Step-by-step explanation:

10 miles = 1 inch

1 mile = 1/10 of an inch so

m miles = m/10 inches.

The equation of the line in the xy-plane that has slope 7/6 and passes through (9.-6) is
a. O 6x-7y+27 = 0
b. O 7x+6y-27 = 0
c. O 6x+7y-27=0
d. 0 6x+7 y+27 = 0
e. O -7x+6y+99 = 0
f.
No Answer

Answers

Answer:

0 = 7x-6y -99

Step-by-step explanation:

The slope intercept form of a line is

y = mx+b where m is the slope and b is the y intercept

y = 7/6x+b

Using the point

-6 = 7/6(9) +b

-6 = 7*3/2 +b

-6 = 21/2 +b

Subtract 21/2 from each side

-12/2 -21/2 = b

-33/2 = b

y= 7/6x -33/2

Multiply each side by 6

6y = 7x - 99

Subtract 6y from each side

0 = 7x-6y -99

What is the value of x in the equation 2x + 3y = 36, when y = 6?

8
9
27
36

Answers

Answer:

x = 9

Step-by-step explanation:

we can plug in the given value for y into the equation to find x

2x + 3y = 36

2x + 3(6) = 36

2x + 18 = 36

2x = 18

x = 9

Answer:

x = 9

Step-by-step explanation:

2x + 3y = 36

Let y=6

2x+3(6) = 36

2x+18 = 36

Subtract 18 from each side

2x+18-18 =36-18

2x = 18

Divide by 2

2x/2 =18/2

x = 9

2. Terrence is tracking his own grades. On his first quiz, he got 3 points correct out of 20
points possiblé, or 15%. On his second quiz, he got all 30 points correct.
a. How many points has Terrence earned so far?
SAS
b. How many total points were available on the two quizzes?
c. What is Terrence's percentage grade right now?

Answers

Answer:

a) 33

b) 50

c) 66%

Step-by-step explanation:

a) 3+30

b) 20+50

c) 33/50 * 100% = 66%

6.
Ahmad claims that the difference of squares method of factoring can be used even when the values aren't perfect squares. An example of his thinking is shown.

Answers

Answer:

Below.

Step-by-step explanation:

a. (x - √5)(x + √5)

= x(x + √5) - √5(x + √5)

= x^2 + √5x - √5x - 5

= x^2 - 5.

b. 10 - 3x^2

= (√10 - √3x) (√10 + √3x)

(a) Ahmad's factorization is correct.

(b)  (√10 - √3x)(√10 + √3x)

Given equation as

x² - 5 = (x - √5)(x + √5)

What is a Perfect Square?

A Perfect Square is defined as when multiplying an integer by itself, we get a perfect square, which is a positive integer. In simple words, we can say that perfect squares are numbers that are the products of integers by themselves.

Solution of (a)

Taking RHS from the given equation

⇒ (x - √5)(x + √5)

⇒ x(x + √5) - √5(x + √5)

⇒ x² + √5x - √5x - 5

⇒ x² - 5.

So, RHS = LHS

Hence, Ahmad's factorization is correct.

Solution of (b)

⇒ 10 - 3x²

According to Ahmad's strategy  

⇒ √10(√10 + √3x) - √3x(√10 + √3x)

(√10 - √3x)(√10 + √3x)

Learn more about perfect square here:

https://brainly.com/question/385286

#SPJ2

Which expressions are equivalent to 5+(-3)(6x-5)5+(−3)(6x−5)5, plus, left parenthesis, minus, 3, right parenthesis, left parenthesis, 6, x, minus, 5, right parenthesis ? Choose all answers that apply: Choose all answers that apply: (Choice A) A 18x-2018x−2018, x, minus, 20 (Choice B) B 3x-33x−33, x, minus, 3 (Choice C) C None of the above

Answers

5+(-18x+15)5 + (-18x +15)5

5+ (-90x +75) + (-90x + 75)

-180x +155

let's see the alternatives:

a) -2000x - 2018 -> -200x - 201,8

b) -30x - 33 -> -180x -198

c) none of the above

so, c is the right one

hope it helps :)

Answer:

ITS C

Step-by-step explanation:

2. Find F(x)+g(x)
4 options to pick from

Answers

Answer:

first option

3x³ - 6x - 4

HOPE IT HELPS YOU

THANK YOU

Find the volume of a cone with a
radius of 10 and a height of 7. Use 3.14 for n and
round the answer to the nearest whole number.

Answers

Answer:

Step-by-step explanation:

Volume of a cone formula is

[tex]V=\frac{1}{3}\pi r^2h[/tex] where r is radius and h is height. Filling in:

[tex]V=\frac{1}{3}(3.14)(10)^2(7)[/tex] and doing all the math on that and rounding gives us

V = 733 units cubed

Kay must re-carpet her circular den. If the diameter of the
den is 6 yards, what is the total square yardage of carpet
that is needed?

Answers

Answer:

28.26² yards

Step-by-step explanation:

Diameter is 6.

Radius=Diameter/2. r=6/2

Area=Pi*Radius²

I'll just use 3.14 for pi

Area=3.14*3²

3²=9 3.14*9=28.26

so the answer 28.26²

5. Dylan walks into a video arcade with a pocketful of quarters. He spends them
at a rate of nine every half hour until he runs out. If the amount of quarters Dylan
has is graphed over time, which feature of the graph corresponds to Dylan's
initial amount of quarters, before he spends the first one?
The y-intercept
The slope
The x-intercept
The minimum value

Answers

Answer:

The y-intercept

Step-by-step explanation:

Have a good day :)

There is a distance marker every 100 m and a pole every 80 m along a straight road. There is a distance marker and a pole together at the start of the road. How far along the road will there be a distance marker and a pole together again?

Answers

Answer:

At a distance of 400 m.

Step-by-step explanation:

From the information in the given question, a distance marker and pole are together at the start of the road.

Thus,

the distance marker would mark the road 100 m, 200 m, 300 m, 400 m, 500 m etc.

Also,

the pole would be located 80 m, 160 m, 240 m, 320 m, 400 m, 480 m etc.

Comparing the distance of location of the marker and pole, it would be observed that the next location where the two would be together is 400 m from the starting point.

Therefore, there would be a distance marker and a pole together at 400 m from the stat of the road.

Angela works a basic week of 40 hours and her hourly rate of pay is $12.50. Calculate her weekly wage.

Answers

Answer:

$500

Step-by-step explanation:

Answer:$500

Step-by-step explanation:

To calculate the weekly wage, take the hourly rate and multiply it by the number of hours worked. For this question it would be:

$12.50 x 40

=$500

That is your weekly wage

Hope this helped! <3

please answer this question!!​

Answers

Answer:

a

Step-by-step explanation:

all angles of an equilaterall triangle are equal therefore 180÷3 = 60

Given the preimage and image, find the dilation scale factor​

Answers

Answer:

1/2

Step-by-step explanation:

the dilation factor should be 1/2

if u count the dots on the sides of the preimage there are 2 dots that's the length if u count the dots on the real image it's 4therefore 2/4 to it's lowest term is 1/2 so 1/2 is the scale factor

Answer:

should be 1/2 as your answer

A fundraiser was held to split the profits between the 9 baseball players. How much money was raised if each player earned $326? Construct a division equation to represent the situation. Make sure to identify and label your variable. Solve for the variable and describe your answer. Show your work and prove your solution to be correct.

Answers

Answer:

Part 1

The number of baseball players that are to split the profits = 9 baseball payers

The amount of money each player earned = $326

Let x represent the total amount of money raised, and given that each baseball player received equal amount of the profits we have the following division equation;

[tex]The \ division \ equation \ is , \dfrac{x}{9} = \$ \, 326[/tex]

Part 2

Solving for the variable, gives;

x = 9 × $ 326 = $2,934

The amount of profits from the fundraiser, x = $2,934

Part 3

The amount, A, each of the 9 players will earn from the profit of $2,934 raised in the fund raiser is given as follows;

A = $2,934/9 = $326

∴ The amount each of the 9 players will earn, A = $326, therefore the answer corresponds to the value in the question and is therefore, correct

Step-by-step explanation:

pls pls pls help meeeeee

Answers

Answer:

i think you just extend the coordinates to the side, except the right point, by 3, and then the bottom ones go down by 3, and the top one goes up by 3

Step-by-step explanation:


Which segment is parallel to ED?

Answers

Answer:

AB

Step-by-step explanation:

The segments that are parallel need to be in the same direction ( up and down)

The segments that are parallel are FH, AB, GC

Answer:

AB

Step-by-step explanation:

since is a cube all of the angles are 90 degees and this only possibel whn the line That a vertical a parrelllt to each other

Relaciona la columna de la izquierda con los elementos asociados al polígono
a) centro
b) lado
c) vértice
d) ángulo interno
e) radio
f) ángulo central
g) apotema
h) ángulo exterior

Answers

Answer:

i dont know

Step-by-step explanation:

bu bu bu

Find the missing segment in the image below

Answers

Answer:

Step-by-step explanation:

Help plz!! Trig question

Answers

Answer:

5 meters tall.

Step-by-step explanation:

We know that angle A (the bird) is 55. The opposite side from this angle is 4.5 meters, since that is the distance she is from the tree. From this, we can set up an equation tan(55)=4.5/x and simplify it to x= 4.5/tan(55). This would be height x, but it is not accounting for the 1.5 meters the apple is off the ground, so you need to add 1.5 to the result. The final answer would be 4.65 but you need to round to the nearest meter so it would be 5.

Plsss help asap plsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

Answers

Answer:

The answer is the last one, (X^2-2)/3!

Step-by-step explanation:

To get the inverse of a function, you switch the variables and solve for y. Doing this produces the last choice.

Pls help and fast! 17 points!

Answers

Answer:

54 square units

Step-by-step explanation:

144 - 18 - 4(18) = 54 square units

resolute academy algebra 1

Answers

Answer:

B

Step-by-step explanation:

We can see in the expression that there are 2 x² blocks, 4 -x blocks, and 3 -1 blocks. Therefore, we can write this as

2 * x² + 4 * (-x) + 3 * (-1) = 2x²-4x-3

Comparing this with each answer, we have

A: x²-2x-4 + x² + 2x-1 = 2x²-5. This is not correct

B: 3x²-7x+1-(x²-3x+4) = 3x²-7x+1 -x²+3x-4 = 2x²-4x-3. This seems correct but we can check the other answers to be sure

C: (2x+1)(x-3) = 2x²-6x+x-3 = 2x²-5x-3. This is incorrect

D: [tex]\frac{8x^{12} - 16x^7 - 12x^6}{4x^6} = 2x^6 - 4x - 3[/tex]. This is incorrect

Answer:

C. 2(x + 10)(x - 10)

Step-by-step explanation:

2x^2-200\\2(x^2-100)\\2(x+10)(x-10)

All points of the step function f(x) are graphed.

On a coordinate plane, a step graph has horizontal segments that are each 2 units long. The left end of each segment is an open circle. The right end of each segment is a closed circle. The left-most segment goes from (negative 4, 1) to (negative 2, 1). Each segment is 1 unit higher and 2 units farther to the right than the previous segment. The right-most segment goes from (2, 4) to (4, 4).
What is the domain of f(x)?

{x| –4 < x ≤ 4}
{x| –3 < x ≤ 4}
{x| 1 < x ≤ 4}
{x| 2 < x ≤ 4}

Answers

Answer:

A. {x| –4 < x ≤ 4}

Step-by-step explanation:

Answer:

{x| –4 < x ≤ 4}

Step-by-step explanation:

Edge Quiz 2023

In ΔABC, ∠A = 50° and the external bisectors of ∠B and ∠C meet at O as shown in figure. The measure of ∠BOC is

Answers

Answer:

17

Step-by-step explanation:

Look at Triangle ABC, The rays meet at line BC and they are both from the interior point A. So this means that AB=AC. This makes ABC a isosceles triangle. Using the isosceles triangle theorem, Angle B and Angle C measure is equal to each other so

[tex]50 + x + x = 180[/tex]

[tex]50 + 2x = 180[/tex]

[tex]2x = 130[/tex]

[tex]x = 65[/tex]

This means angle b and C of the triangle ABC measure is 65.

External bisector bisect a figure that it makes the original angle split into half that they are equal to each other.

This means the angle below Angle B and angle C measure is 32.5. We can find the measure of Angle B and C in triangle BOC. This is a isosceles triangle as well so

[tex]32.5 + 65 + x = 180[/tex]

[tex]98.5 + x = 180[/tex]

[tex]x = 81.5[/tex]

Angle C is 81.5 as well so

[tex]81.5 + 81.5 = 163[/tex]

Find angle o

[tex]180 - 163 = 17[/tex]

The equation T squared = A cubed shows the relationship between a planet's orbital period, T, and the planet's mean distance from the sun, A, in astronomical units, AU. If planet Y is k times the mean distance from the sun as planet X, by what factor is the orbital period increased? k Superscript one-third k Superscript one-half k Superscript two-thirds k Superscript three-halves

Answers

Answer:

Ty = √k  * Tx

The orbital period of Y has to be be multiplied by √k .   or . k∧1/2

Step-by-step explanation:

The general equation:

T² = A³

is for the case of planet X

Tₓ² = Aₓ³

In the case of planet Y

Ty² = k * Aₓ³ .     and   Aₓ³ = Tₓ²

By substitution:

Ty² =  k *Tₓ²

Ty = √k  * Tx

Answer:

D: K^3/2

Step-by-step explanation:

Just took the test and this is right

We wish to estimate what percent of adult residents in a certain county are parents. Out of 300 adult residents sampled, 102 had kids. Based on this, construct a 95% confidence interval for the proportion p of adult residents who are parents in this county.

Answers

Answer:

The answer is "[tex]0.34 \pm 0.060[/tex]".

Step-by-step explanation:

Point estimate = Sample proportion [tex]= \frac{102}{300}= 0.34[/tex]

For [tex]95\%[/tex] confidence, [tex]z = 1.96[/tex]

Hence,

Margin of error[tex]= 1.96 \times \sqrt{0.34\times \frac{0.84}{300}}=1.96 \times 0.0308 = 0.060[/tex]

Therefore,

Confidence interval in the tri-equality form:

[tex]\to 0.34 - 0.060 < p < 0.34 + 0.060\\\\\to 0.28 < p < 0.4[/tex]

Confidence interval using point estimate and margin of error:

[tex]p = 0.34 \pm 0.060[/tex]

Other Questions
3. Solve for side length BDA31D13 cmI47CB Read this excerpt from White Fang.Hated by his kind and by mankind, indomitable, perpetually warred upon and himself waging perpetual war, his development was rapid and one-sided. This was no soil for kindliness and affection to blossom in. Of such things he had not the faintest glimmering. The code he learned was to obey the strong and to oppress the weak. Grey Beaver was a god, and strong. Therefore White Fang obeyed him. But the dog younger or smaller than himself was weak, a thing to be destroyed.Which best describes the force that influences White Fangs code of conduct? 50 pointsan external force based on other charactersan external force based on the wilderness settingan internal force based on White Fangs feelingsan internal force based on White Fangs instincts While making a fundamental attribution error, we center our attention on the person whose behavior we are considering because simplify 3^2 x 3^4 x 3^6 A3^10 B3^12 C3^48 D3^0 is h(x) = 6 a linear function and why Could there be winds without differential heating? Using evidence from Unit 5 explain what differential heating is and whether this effects the earths global wind patterns. HELPPP PLEASE SITE EVIDENCE (WILL MARK BRAINLIEST)!!!!!!!! Cheryl is studying for an exam. While reviewing her flash cards, she notices that she will need to identify a variety of different types of patient transfers. What is NOT an example of a patient transfer? A driver travels for 2 hours at 90 miles per hour, during which her car gets 30 miles per galoon of gasoline. She is paid $0.70 per mile, and her only expense is gasoline at $4 per gallon. What is her net rate of pay, in dollars per hour, after this expense? find the interval in which the function is negative.f(x) = x^2 - 3x - 4I. (- infinite, -1)II. (-1, 4)III. (4, infinite)A. III onlyB. II onlyC. I, IID. I, III what is a funny basketball catchphrase that means let's go? please help its for an essay also please make sure its not something stu pid thx and plz dont say i tried because that would just make me mad so thx again my friends Hassan surveyed 120 of the students in his school about their favorite color. 114 students said their favorite color was purple. What percentage of the surveyed students said their favorite color was purple? Foreign and domestic merchandise may be moved into Foreign Trade Zones (unless prohibited by law), for activities such as storage, exhibition, assembly, manufacturing, and processing. Foreign and domestic merchandise may be moved into Foreign Trade Zones (unless prohibited by law), for activities such as storage, exhibition, assembly, manufacturing, and processing. True A coffee pot holds 6 quarts of coffee. How much is this in cups? Please Answer 1-5 please. 23-The journal entry to record a payment made on an installment note would include: a. A debit to Installment Note Payable b. A debit to Interest Expense c. A credit to Cash d. All the above Two fractions in the middle of 1/4 and 3/4 Help meeeeeeeeeeee!!! How does the temp of water change when it is heated on a stove top and it begins to boil. the structures responsible for carrying information all over your body are Find the actual yield when the theatrical yield is 1.09g and percent yield is 90%.