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
Sophie [7]
3 years ago
13

Given the following program: public class MysteryNumbers { public static void main(String[] args) { String one = "two"; String t

wo = "three"; String three = "1"; int number = 20; ​ sentence(one, two, 3); sentence(two, three, 14); sentence(three, three, number + 1); sentence(three, two, 1); sentence("eight", three, number / 2); } ​ public static void sentence(String three, String one, int number) { System.out.println(one + " times " + three + " = " + (number * 2)); } } Write the output of each of the following calls. Sound F/X sentence(one, two, 3); sentence(two, three, 14); sentence(three, three, number + 1); sentence(three, two, 1); sentence("eight", three, number / 2);
Computers and Technology
1 answer:
enyata [817]3 years ago
7 0

Answer:

Check the explanation

Explanation:

/*Given the following program:

public class MysteryNumbers {

   public static void main(String[] args) {

       String one = "two";

       String two = "three";

       String three = "1";

       int number = 20;

​

       sentence(one, two, 3);

       sentence(two, three, 14);

       sentence(three, three, number + 1);

       sentence(three, two, 1);

       sentence("eight", three, number / 2);

   }

​

   public static void sentence(String three, String one, int number) {

       System.out.println(one + " times " + three + " = " + (number * 2));

   }

}*/

Write the output of each of the following calls.

sentence(one, two, 3);     three times two = 6

sentence(two, three, 14); 1 times three = 28

sentence(three, three, number + 1); 1 times 1 = 42

sentence(three, two, 1);   three times 1 = 2

sentence("eight", three, number / 2); 1 times eight = 20

You might be interested in
Headphones are an example of _____.
katen-ka-za [31]
The Answer Is An Output Device 


3 0
3 years ago
Read 2 more answers
Consider the following code segment, where num is a properly declared and initialized integer variable. The following code segme
seropon [69]

Answer:

10 or 22 or 15 or 40

Explanation:

In the second for loop[for (int k = 1; k < arr[0].length; k++)], k starts from 1 instead of zero. That means that it doesn't read the first value of every row when finding num.

So if num was any of the above values, the program wouldn't work. I had the same question, and the answer for mine was 15.

3 0
3 years ago
Web crawlers or spiders collect information from Web pages in an automated or semi-automated way. Only the text of Web pages is
krek1111 [17]

Answer:

The correct answer to the following question will be "False".

Explanation:

  • Web crawlers make copies of google search recovery pages that index the streamed pages to allow subscribers to more effectively search. It collects details of Web pages in an automatically generated or semi-automated form.
  • The code of HTML and Hyperlink can be checked by crawlers. They could be used for scraping of the web.

Therefore, the given statement is false.

5 0
3 years ago
Whats an effective way to sort linked lists in cpp.
irina [24]

Answer:

Using Merge Sort.

Explanation:

Merge Sort is preferred for sorting the linked list because the the data stored in linked list is not in serial memory address which makes the quick sort algorithm very slow and other sorting algorithms impossible.

Merge Sort is a divide and conquer algorithm.

In this algorithms we divide the linked list into sub parts and sort the sub parts of the linked list and then we merge them in sorted order. It is a very effective approach for linked list sorting.

The time complexity of merge sort is O(NLogN).

6 0
3 years ago
The sun can be an excellent source of natural light.<br> True.<br> False.
Blababa [14]

Answer:

The answer is TRUE

7 0
3 years ago
Read 2 more answers
Other questions:
  • To indent the first line of a paragraph which key should you use
    13·2 answers
  • Carlos wrote a check for $44.92 to pay his gas bill. He’ll use the check register to record his transaction. What will be his ne
    10·1 answer
  • This measures how close a biometric reading is to a prerecorded template
    11·1 answer
  • Write a Java program to accept an item's name and price from the user and output them to the console
    5·1 answer
  • Which option can be used to access more settings than are available in the Backstage view?
    11·2 answers
  • IN YOUR OWN WORDS, create a new thread and compare and contrast paraphrasing, summarizing, and quoting and how to do each succes
    14·1 answer
  • Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest
    11·1 answer
  • Which statement describes what the Conditional Formatting option in Excel 2016 allows users to do?
    10·2 answers
  • HAIIIIIII ANYONE FEELING JOLLY OR SAD
    9·2 answers
  • Explain the role of computers in accounting
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!