Answer:
1/5 is a rational number.
Explanation:
Natural numbers are the numbers you use to count with (1, 2, 3, etc.). Nobody uses fractions while counting whole objects unless they think they're funny and want to stall, so 1/5 wouldn't be a rational number.
Whole numbers are the exact same as natural numbers, but with the addition of the number 0 (think about it, no one starts from zero when counting).
Integers include whole numbers as well as their opposites (for example, the opposite of 4 is –4).
As a basic rule of thumb, if the number includes a fraction or a decimal point of any kind, it would be a rational number.
Answer:
The second one is correct you don't put a space after the comma.
Explanation:
In PowerPoint, it is known as slide sorter.
Answer:
2 + 7
3 + 1
Explanation:
The program prints whatever you tell it to print
Answer:
The method is as follows:
public static void randomStar(Random r, int num) {
int n;
do {
n = 5 + r.nextInt(15);
for(int count = 0; count < n; count++){
System.out.print("*");
}
System.out.println();
} while(n < num);
}
Explanation:
This defines the method
public static void randomStar(Random r, int num) {
This declares n as integer
int n;
The following is repeated until n >= num
do {
This generates a random number for n (5 and 19)
n = 5 + r.nextInt(15);
The following loop prints n *'s
for(int count = 0; count < n; count++){
System.out.print("*");
}
This prints n
System.out.println();
} while(n < num); The loop is repeated as long as the condition is valid
}