Answer:
Explanation:
They can be used in class or as homework based on teacher preference. The questions can reveal ... process multiple times are the building blocks of programs.
Answer:
public class Main{
public static void main(String[] args) {
System.out.println(replaceSubstring("the dog jumped over the fence", "the", "that"));
}
public static String replaceSubstring(String s1, String s2, String s3){
return s1.replace(s2, s3);
}
}
Explanation:
*The code is in Java.
Create function called replaceSubstring that takes three parameters s1, s2, and s3
Use the replace function to replace the s2 with s3 in s1, then return the new string
In the main:
Call the replaceSubstring function with the given strings and print the result
Answer:
The correct commands are:
- <em>Click two times when the arrow cursor is at the selection bar.</em>
- <em>Drag the cursor from the start to the end point of the paragraph.</em>
- <em>Put the cursor in front of the first word in the paragraph, then click three times.</em>
Explanation:
<em>Press the Ctrl key while clicking on a word.</em>
- Incorrect. This highligths the sentence but not the whole paragraph.
<em>Click two times when the arrow cursor is at the selection bar.</em>
The selection bar is on the left side of the window and is invisible. When you put the cursor on this area, to the left of a line of a paragraph, one click selects the line and two clicks select the whole paragraph.
<em>Drag the cursor from the start to the end point of the paragraph.</em>
- Correct: this is the most classical. By dragging the cursor you select everything that is between the starting point and the end point.
<em>Place the cursor on the paragraph, then use the Ctrl+A keys.</em>
- Incorrect: if you do not click nothing happens.
<em></em>
<em>Put the cursor in front of the first word in the paragraph, then click three times.</em>
<em></em>
- Correct: It is very easy. Just click before the first word, to put the cursor in front of it, and then click three times.
At right angles to each other would be the answer youre loking for.Hope this helps!!