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]
3 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]3 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
A charity organization had to sale 18 tickets to their fundraiser Just to cover necessary production cost.They sold each ticket
Harman [31]

A charity organization had to sale 18 tickets to their fundraiser Just to cover necessary production cost.They sold each ticket for $45.Let y represent the net profit in dollars when they have sold x tickets

Which of the following information about the graph of the relationship is given?

Choose 1 answer:

A

Slope and x-intercept

B

Slope and y-intercept

C

Slope and a point that is not an intercept

D

x-intercept and y-intercept

E

y-intercept and a point that is not an intercept

F

Two points that are not intercepts

Answer:

A. Slope and x-intercept

Step-by-step explanation:

We are told that each Ticket cost $45 , so the number of ticket sold should be multiplied by the cost of 1 ticket , Also; we were informed that x tickets were sold, this implies that the amount will be $45 multiplied by x , which is $45x. To find the profit (y) , then we must find the cost of 18 tickets which will give us the cost price and then subtract it from the selling price ($45x).

NOW:

Given that :

a charity organization had to sell 18 tickets

and one ticket cost for $45

Then 18 tickets = $45 × 18 = $810

Let y represent the net profit in dollars when they have sold x tickets

So : y = 45 x - 810

Relating the above equation with equation of a straight line  y = mx +c ,

where :

m and c = the numbers on the gradient line   ; &

y = slope

x =  intercept where the graph crosses y - axis

Thus; the information given is the :Slope and x-intercept

8 0
3 years ago
you are taking a trip at the same time as another family. your family traveled 1.900 miles in 2 days, their family traveled 2.70
snow_tiger [21]

Answer:

your family

Step-by-step explanation:

1,900/2 = 950

2,700/3 = 900

your family travels 950 miles every day whereas their family travels 900 miles every day :)

6 0
2 years ago
The volume of a cone is 16 pi cubic inches. Its height is 12 inches. What is the radius of the cone? 2 in. 4 in. 12 in. 16 in.
mart [117]

The radius of cone is 2 inches

<em><u>Solution:</u></em>

<em><u>The volume of cone is given by formula:</u></em>

V = \frac{\pi r^2h}{3}

Where,

"V" is the volume of cone

"r" and "h" are the radius and height of cone respectively

Given that, volume of a cone is 16 pi cubic inches

Its height is 12 inches

Therefore, we get,

V = 16 \pi cubic inches

h = 12 inches

r = ?

<em><u>Substituting the values in formula, we get</u></em>

16 \pi = \frac{ \pi \times r^2 \times 12}{3}\\\\16 = 4r^2\\\\r^2 = 4\\\\r = \pm 2

Since, radius cannot be negative, ignore r = -2

Thus radius of cone is 2 inches

8 0
3 years ago
Read 2 more answers
If the 7th of an AP is equal to 11 times the 11th term, find the 18th term
Zina [86]

Answer:

-33 or 33

Step-by-step explanation:

The seventh term of an AP is written as:

a + 6d

The eleventh term of an AP is written as:

a + 10d

If the 7th term is 11 times the 11th term, then;

a + 6d = 11(a + 10d)

Expand to get:

a + 6d = 11a + 110d

11a - a = 6d - 110d

10a =  - 104d

\frac{a}{d}  = -   \frac{104}{10}

\frac{a}{d}  = -   \frac{52}{5}

We must have a=-52 and d=5

Or

a=52 and d=-5

For the first case, the 18th term is :

- 52 + 5 \times 17 = 33

For the second case,

52 - 5 \times17 =  - 33

3 0
3 years ago
The angles of a triangle are 2x, 3x, and 4x degrees. Find the value of x. A) 20 Eliminate B) 30 C) 40 D) 50
statuscvo [17]

Answer:


Step-by-step explanation:

2x+3x+4x=180

8x=180

divide by 8 to both sides

x=22.5

6 0
3 years ago
Read 2 more answers
Other questions:
  • I need help pleaseeeeee​
    7·2 answers
  • Can 6 fit into 36 and if so how many times
    12·2 answers
  • What is the least common multiple of 8 and 32
    9·1 answer
  • Cathy cut 2 apples into 6 slices each she ate 9 slices which expresion matches the words
    7·2 answers
  • How would I turn this into an expression
    5·1 answer
  • 8x10^30/2x10^12 in scientific notation?
    11·1 answer
  • Round 2.1132 to the nearest hundredth.<br> Answer:
    5·2 answers
  • Samiya bought a tree 3 inches long. Each year, the tree expected to grow 5 inches. How long (How many years) it takes the tree t
    15·1 answer
  • Which is another way to make 6,500
    5·2 answers
  • Please hurry I need this soon and no links
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!