1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ira [324]
2 years ago
13

If string str1 = "forest" and string str2 = "school", then what is the value of str1.compareto(str2);?

Mathematics
1 answer:
REY [17]2 years ago
8 0
<span>This is an java command program. String 1 is stands for str1= '' forest '' accepted within quote marks. String 2 is stands for str1= '' school'' accepted within quote marks the command compareto will cause the output will display as shown below : str1.compareto(str2); when run this command we will get the output like this ; forest school ================================================== the model program is like this; { String str1 = " forest " ; String str2 = "school "; System.out.println(); System.out.println("String 1: " + str1); System.out.println("String 2: " + str2);</span>
You might be interested in
Bags of maple granola cost $2 more than apple granola
Brilliant_brown [7]

Answer:

a + m = 2+ a

Step-by-step explanation:

We don't know the amount of apple granola and the amount of the maple granola. So we just set an equation.

3 0
3 years ago
What is the vertex of y&lt;∣x−3∣+5​
Tcecarenko [31]

Answer:

(3, 5)

Step-by-step explanation:

The graph is is the standard y=|x| except the values tells you that x shifts 3 (within the absolute value or parentheses x does the opposite) to the right and the y value shifts 5 up (numbers outside parentheses affects y and does what it says). You can try using a table of values then graphing to check your answer.

3 0
2 years ago
if a 120 pound adult requires 3 ounces of a medication,how many ounces would be needed for a 200 pound adult
alexandr1967 [171]

Answer:

5 ounces

Step-by-step explanation:

it goes up one ounce by every 40 lbs.

8 0
2 years ago
Read 2 more answers
8.33 Suppose Paul receives a 6% raise every year. After four such raises, what is the total percentage increase to the nearest w
Oksana_A [137]

Answer:

Given:

Suppose Paul receives a 6% raise every year.

To find:

After four such raises, the total percentage increase to the nearest whole percent.

The formula used to calculate percentage is: (value/total value)*100%.

Step-by-step explanation:

Step 1 of 1

Assume his salary is originally  100 dollars.

Then, in the next year, he would have 106 dollars, and in the next, he would have 112.36 dollars.

The next year he would have 119.1016 dollars and in the final year, he would have 126.247.

As the total increase is,

((126.247 -100)/100) *100

= 26.247%

the answer is 26%.

4 0
1 year ago
Read 2 more answers
Solve the system of equations. If a system has one unique solution, write the solution set. Otherwise, determine the number of s
Sauron [17]

The value of x, y and z from the system of equation are -1, -8 and 5 respectively.

Data;

  • -2x + 6y + 3z = -31
  • -3y + 7z = 59
  • 2z = 10

<h3>System of Equation</h3>

To solve this problem, we have to solve the system of equation using substitution method.

From equation (iii)

2z = 10\\z = 5

let us substitute the value of z into equation (ii)

-3y + 7z = 59\\z = 5\\-3y + 7(5) = 59\\-3y + 35 = 59\\-3y = 59 - 35\\-3y = 24\\y = -8

Let's substitute the value of x and y into equation (i)

-2x + 6y + 3z = -31\\y = -8, z = 5\\-2x + 6(-8) + 3(5) = -31\\-2x - 48 + 15 = -31\\-2x - 33 = -31\\-2x = -31 + 33\\-2x = 2\\x = -1

From the calculation above, the value of x, y and z are -1, -8 and 5 respectively.

Learn more on system of equations here;

brainly.com/question/14323743

6 0
2 years ago
Other questions:
  • How to do stem and leaf plot?
    5·1 answer
  • Can someone write a full proof for #20?
    10·1 answer
  • Which of the following is always true? Choose the correct answer below.
    11·1 answer
  • Please help? unit rates in math
    13·1 answer
  • A spinner is divided into many sections of equal size. Some sections are red, some are blue, and the remaining are green. The pr
    5·1 answer
  • Write this answer in simplest form.
    8·2 answers
  • Which equation is the correct translation for the following statement?
    6·1 answer
  • The high temperature is forecast to be 5.4 F . What is this temperature in degrees Celsius ()?
    11·1 answer
  • Joe, Kay and Liam share some money in the ratio 5 : 6 : 9
    13·1 answer
  • In algebra, we often study relationships where a change to one variable causes change in another variable. Describe a situation
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!