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 is the initial value of the equation shown?

y = −5x + 2

a
−5

b
−2

c
5

d
2

Answers

Answer:

Y = 2

Step-by-step explanation:

if you were looking for y's value

If total employee benefits are calculated as a percentage of their gross pay whitch of the following employees receive the largest percentage of their gross pay in employee benefits

Answers

The employee that receives the largest percentage of their gross pay in employee benefits is Marcel.

The percentage of employee benefits to total gross pay for each worker has to be determined.

Percentage = (total job benefits / gross pay) x 100

Emily: (33,600 / 32,600) x 100 = 103.07%

Jack: (34,700 / 33,700) x 100 = 102.97%

Judy: (33,900 / 33,400) x 100 = 101.5%

Marcel: (34,000 / 32,900) x 100 = 103.43%

A similar question was answered here: https://brainly.com/question/25764815

Please find attached a complete question

what is the value of 3.5(11+1.9(11)+1.6(11)?

Answers

Answer:

The answer is 77

What is the solution for the system of equations?
y = -x +4
y = x- 2

• (3, 1)
• (1, - 2)
• (-2, 1)
• (1, 3)

Answers

Answer:

1, 3

Step-by-step explanation:

// Solve equation [2] for the variable  y  

  [2]    y = x - 2

// Plug this in for variable  y  in equation [1]

[1]    (x -2) + x = 4

  [1]    2x = 6

// Solve equation [1] for the variable  x  

[1]    2x = 6  

[1]    x = 3  

// By now we know this much :

y = x-2

x = 3

// Use the  x  value to solve for  y  

 y = (3)-2 = 1

45. You decide to market your own custom computer software. You must invest $3,255 for
computer hardware, and spend $2.90 to buy and package each disk. If each program sells
for $13.75, write a system of equations and determine how many disks you must sell to
break even.

Answers

Your question was solved by a verified tutor on Brainly. Hope this helps!

Please help meee :( Just an answer

Answers

Answer:

p plus 6

Step-by-step explanation:

PLEASEEE HELPPP I NEEDD HELPP WITH THISSS!

Answers

Answer: The answer is 27.04 square inches.

Explanation: The area of a square can be calculated by multiplying the length of a side by the length of a side.

Answer:

27.04 in^2

Step-by-step explanation:

hope this helps! :)

Write a two-column proof.

I WILL GIVE BRAINLIEST TO BEST ANSWER! PLS HELP!
refer to images for question
MUST WRITE FULL PROOF

Answers

Proof:-

In ∆XYZ and ∆VWZ

[tex]\because\sf\begin{cases}\sf XZ\cong VZ(Given)\\ \sf YZ\cong WZ(Given)\\ \sf <XZY\cong <WZV(Opposite angles)\end{cases}[/tex]

Hence

∆XYZ[tex]\cong[/tex]∆VWZ(Side-Angle-Side)

Find the greatest common factor of the
following monomials:
18xy^ 30xy3
NO LINKS

Answers

Answer:

Step-by-step explanation:

6xy^3

Which equation is equivalent to
A=1/2bh?

A) H=2A/b

B) H= A/2b

C) H= A - 1/2b

D) H= 2A-b

Answers

Answer:

a

Step-by-step explanation:

What is the slope of the line?

Answers

Answer:

looks like 3/4

Step-by-step explanation:

Shapes. I will give brainless answer correctly and tell me the number

Answers

Answer:

It has to be 4 parts because it will to uneven if you cut diagonally.

pls help me answer this 12 to 15 questions​

Answers

Answer:

Step-by-step explanation:

See attachment

12.  -23C

13.  28.9% Loss

14.  Diagram in the attachment.  The sides can be calculated with the Pythagorean Theorem.  Side = 3.61 cm

15.  Use trig relationships.  x = 5, y = 8.66

There are 70 students in the school band. 40% of them are sixth graders, 20% are seventh graders, and the rest are eighth graders.



1. How many band members are sixth graders?
band members

2. How many band members are seventh graders?
band members

3. What percentage of the band members are eighth graders?

Answers

Answer:

1=28 students 2=14students 3=40%

Step-by-step explanation:

1. 70 students = 100%

7 students = 10%

28 students = 40%

28 students are sixth graders!

2.70 students = 100%

7 students = 10%

14 students = 20%

14 students are seventh graders!

3.Percentage of band that is eighth graders: 40+20=60% 100%-60%=40%

40% are eighth graders!

A 4-oz. filet of salmon contains 500 mg of potassium. The daily recommended amount of potassium is 3,500 mg. If you ate a 6-oz. filet of salmon, what percent of your daily value did you eat of potassium?

A. 21%
B. 15%
C. 25%
D. 12%

Answers

The answer is 21% because a 6-oz fillet of salmon contains about 750 mg of potassium. 3500-750 equals 2750, meaning that whichever percent closest to that answer is correct. 3500 - 21% = 2760 which is the closest number to the correct percentage therefore A. Is the answer.

need assistance with algebra 2

Answers

Answer:

A. Quadratic, degree 2

Step-by-step explanation:

The degree is found by simply finding the term with the power of, that is the highest. Which would be 2x^2. It is raised to the 2nd power, so the degree is 2.

i need answer for knoledge

Answers

Answer:

I couldn't understand what you actually mean. But, I -think you are trying to ask what is the meaning of Knowledge.

HERE - (definition of knowledge)

facts, information, and skills acquired by a person through experience or education; the theoretical or practical understanding of a subject.

Simplify 3x + 5y + 2x – 4y

Answers

Answer:

5x + y

Step-by-step explanation:

3x + 5y + 2x – 4y=> 5x + y

Conclusion:

Therefore:

5x + y

Hoped this helped.

[tex]GeniusUser[/tex]

The simplified form of the given expression is 7x+y.

The given expression is 3x+5y+2x-4y.

An expression is a combination of terms that are combined by using mathematical operations such as subtraction, addition, multiplication, and division.

Group the like terms and simplify, we get

(3x+2x)+(5y-4y)

= 7x+y

Therefore, the simplified form of the given expression is 7x+y.

To learn more about an expression visit;

https://brainly.com/question/28170201.

#SPJ4

9. Which of the following is an example of the Commutative Property of Addition? (1 point)
O 12 + 4 = 4 + 12
O 12 + (3 + 2) = (12 + 3) + 2
O 2 + 7 + 0 = 2 +7
O 17+ (-17) = 0
V
10. If p = 8, evaluate 42+p:3. (1 point)
02.
03
06
08
Finish
Cancel

Answers

Answer:

9. the first one ( 12 + 4 = 4 + 12 )

Step-by-step explanation:

the commutative property of addition means that you can change the order of the numbers you add and the sum will still be the same. this is shown in the 12 + 4 = 4 + 12 because the order is switched, but they are still equal.

The example of the commutative property of addition is 12 + 4 = 4 + 12, the correct option is A.

What is Algebra?

Algebra is the study of abstract symbols, while logic is the manipulation of all those ideas.

The acronym PEMDAS stands for Parenthesis, Exponent, Multiplication, Division, Addition, and Subtraction. This approach is used to answer the problem correctly and completely.

We are given that;

The four options

Now,

The commutative property of addition states that changing the order of the addends does not change the sum.

This is the only option that shows the same sum with different orders of addends.

Therefore, by algebra the answer will be 12 + 4 = 4 + 12.

More about the Algebra link is given below.

brainly.com/question/953809

#SPJ7

2.3² +9 × 4 ÷by 2



plz help

Answers

Answer: 23.29

Step-by-step explanation:

it is 23.29 because first you multiply 2.3 by 2 then you add 9 and multiply it by 4 then divide by two

Please help me asap

tyyyyyyy :D

Answers

Answer:

7x + 2y = -6

Step-by-step explanation:

Multiply the equation with 2

2 ( y = -7x/2 - 3 )

2y = -7x - 6

7x + 2y = -6

Divide £520 in the ratio 6:7

Answers

Start off by adding the ratio together.
6 + 7 = 13

Now we can divide 520 by 13 = £40

Answer = £40.

The ratio of the number 520 in 6: 7 will be 240: 280.

What are ratios and proportions?

An ordered pair of numbers a and b, represented as a / b, is a ratio if b is not equal to 0. A proportion is an equation that sets two ratios at the same value. The numerical relationship between two values demonstrates how frequently one value contains or is contained within another.

Given that the number 520 is divided into the ratio 6: 7.

The number in the ratio 6:7 will be divided as;-Let the constant term for the ratio is x now form an equation and solve.

6x + 7x = 540

13x = 540

x = 540 / 13

x = 40

6x = 40 x 6 = 240

7x = 7 x 40 = 280

Therefore, the ratio of the number 520 in 6: 7 will be 240: 280.

To know more about ratios and proportions follow

https://brainly.com/question/12024093

#SPJ2

Find the slope of the line that passes through (84, 7) and (85, -25). Simplify your answer and write it as a proper fraction, improper fraction, or integer.​

Answers

Answer: The slope is -32

Explanation:

Start with the slope formula:

m= (y2 - y1) / (x2 - x1)

Substitute point values in the formula

m = (-25 - 7) / (85 - 84)

Simplify each side of the equation

m= (-25 - 7) / (85 - 84) = -32/1

Solve for slope (m)

m= -32

Addy spent $ 15 on supplies to make giant sugar cookies and plans to sell them at her neigthorhood bake sale for $2 each . She wants her profit after paying back expenses to be a least $ a. What inequality vould represent this situation? bRepresent the solution on a number 'ine. How many cookies does she need to sell to make at least 20?

Answers

Answer:

(1.25c) + (1p) ≥ 25

c is the amount of chocolate chip cookies

p is the amount of peanut butter cookies

Step-by-step explanation:

Nancy's nut shop sells cashews for $5.30 per pound and peanuts for $2.80. How many pounds of peanuts must be added to 20 pounds of cashews to make a mix that sells for $3.30 per pound?

Answers

Answer:

80 pounds

Step-by-step explanation:

let 'p' = pounds of peanuts to be added

20(5.3) + 2.8p = 3.3(20 + p)

106 + 2.8p = 66 + 3.3p

40 = 0.5p

p = 80

Nancy's nut shop sells cashews for $5.30 per pound and peanuts for $2.80. How many pounds of peanuts must be added to 20 pounds of cashews to make a mix that sells f

Which bottle of water costs more per ounce: a 12
ounce bottle for $1.25 or a 16 ounce bottle for
$1.50?

I really need help with this!

Answers

Answer:

the second bottle

Step-by-step explanation:

To get the amount it costs per ounce, divide the amount of money by the number of ounces.

A water bottle that costs $1.25 for 12 ounces costs roughly 10 cents per ounce. A water bottle that costs about 9 cents per ounce.

therefore, the 16 ounce bottle is cheaper per ounce

Determine whether the data in the table can be modeled by a linear equation. Explain.

If possible, write a linear equation that represents y as a function of x

Answers

Answer:

yes, because they're varying in a constante rate

y = -1/2x +3.5

Solve for y.
y + 3 = 8y + 3
y =

Answers

[tex]y + 3 = 8y + 3[/tex]

Subtract both sides 3

[tex]y + 3 - 3 = 8y + 3 - 3[/tex]

[tex]y + 0= 8y + 0[/tex]

[tex]y = 8y[/tex]

Subtract both sides y

[tex]y - y = 8y - y[/tex]

[tex]0 = 7y[/tex]

Divide both sides by 7

[tex] \frac{0}{7} = \frac{7y}{7} \\ [/tex]

[tex]y = 0[/tex]

There you go....

Ah

Have a great day ♡

30% of the parks have a pool. If there are 9 parks with pools, how many parks are there altogether?

Answers

Answer:

30 parks

Step-by-step explanation:

9÷0.3=30 parks

I need help with a photo and y’all can choose whatever like for number 7

Answers

Step-by-step explanation:

The one point where the lines intersect is one solution. If both points are on the same line it is one solution. If the lines do not intersect it is no solution.

Other Questions
Write an expression for 5 times the difference of twice a number and 4 US war bonds helped the war effort by . Which two types of appeal does Truth use in this quotation? logos and pathos logos and ethos pathos and ethos. A bowl contains only red marbles, blue marbles and green marbles. The probability of selecting a red marble from the bowl is 3/13. The probability of selecting a blue marble from the bowl is 2/5. There are fewer than 100 marbles in the bowl. What is the probability of selecting a green marble and then a red marble from the bowl on the first two selections, assuming marbles are not returned to the bowl after being pulled Study the chart of word parts.Based on the table, what is the definition ofcontradiction?Word PartDefinitioncontra-againstdictsay or speakO the act of saying something in agreementO the process of saying what will happenthe act of saying something that is the oppositeo the process of giving a speech-ionact or process pls help i will give brainliest!!!!! :) If you can buy four bulbs of elephant garlic for $8 how many can you buy with $32? Help help help help pls do you guys skate? and can you guys do tricks How many real solutions are there to the equation: x + y = 10don't forget the explanation? can anyone help with this.plsi will mark as brainliest answer if it is correctneed explanation 53:24Which statement about the function is true?The graph of the function f(x) = -(x + 3)(x - 1) isshown below.The function is positive for all real values of xwherex 1.1627O The function is negative for all real values of xwherex 1The function is positive for all real values of xwherex > 0The function is negative for all real values of xwhereX-1-642.46-2-24Mark this and returnSave and ExitNextSubmit Why is saving important to the economy.......and to you? 2x^2=3x+10 completing the square Devin sent his aunt a thank-you card for her thoughtful graduation gift. Is a thank-you card a direct or indirect object? Company Z understands that their business is at risk. How can they use step two in theDecision Making Process to reach their end goal of increasing sales and customer satisfaction? Pls help meeee !!!! Plzzz helppo Which allele is recessive?Which allele is dominant? What is the one defining abiotic factor of a desert?cold temperatureshigh windslittle or no rainfallhigh humidity Explain what happens during soil depletion and also how we can help prevent this naturally without chemicals? PLZ FAST TYY