Answer:
(1, 4)
(2, 7)
(0, 1)
(-1, -2)
Explanation:
to find <em>ordered pairs</em>, we plug in different values for x.
(remember, and "ordered pair" is (x, y)--the first number turns into the second number when put through the function)
<em>usually, it's easiest to plug in smaller numbers, so that it is less complicated to graph </em>
so, here's a few x values:
x = 1
y = 3x + 1
y = 3(1) + 1
y = 3 + 1
y = 4
so, when x = 1, y = 4
we write this as: (1, 4)
x = 2
y = 3x + 1
y = 3(2) + 1
y = 6 + 1
y = 7
so, when x = 2, y = 7
we write this as: (2, 7)
x = 0
y = 3x + 1
y = 3(0) + 1
y = 0 + 1
y = 1
so, when x = 0, y = 1
we write this as: (0, 1)
x = -1
y = 3x + 1
y = 3(-1) + 1
y = -3 + 1
y = -2
so, when x = -1, y = -2
we write this as: (-1, -2)
hope this helps!! have a lovely day :)
Answer:
The correct answer for the given question is 24
Explanation:
In the given question the value of variable i entered by the user is 25 i.e the value of i is 25 control checks the condition of if block which is false .So control moves to the else block and executed the condition inside the else block means it executed i-- decrements the value of i by 1 means i is 24
Following are the program of java :
import java.util.*;// import package
public class Main // main class
{
// main method
public static void main(String[] args)
{
int i = 0; // variable declaration
Scanner in = new Scanner(System.in); // creating class of scanner class
System.out.print("Enter a number: ");
i = in.nextInt(); // user input
if (i > 25) // check if block
{
i++; // increment the value of i
}
else
{
i--; // decrement the value of i
}
System.out.println(i); // display i
}
}
Output:
Enter a number:25
24
Answer:
3. Base (<em>under line</em>): usually a layer of salad greens that line the plate or bowl in which the salad will be served.
2. Body (<em>main part</em>): consists of the main ingredients.
1. Garnish: enhances the appearance while also complementing the overall taste; must be edible.
Dressing: liquid/ semi-liquid added to the body.
Explanation:
hi
Counting a sequence of statements without any decisions or branches as one control structure (as many computer scientists do),the if, if-else, and if-else-if ladders as one control structure,the three types of loops (while, do-while, and for) as three different control structures,the break and continue statements, in the context of loops, as one more (although this can be debatable),the switch/case control structure as one,the call/return mechanism as one,the ability to specify and call a callback function as one,the goto/label as one,and the setjmp/longjmp non-local goto as one,