Answer:
Explanation:
The following code is written in Java. The function takes in the random object and creates a random number where it generates a random number and prints out the * characters, if the random number and the input num are the same it prints out both values and ends the function.
import java.util.Random;
class Brainly {
public static void main(String[] args) {
Random r = new Random();
randomStar(r, 12);
System.out.println();
randomStar(r, 19);
}
public static void randomStar(Random r, int num) {
while (true) {
int randomNum = r.nextInt(19) + 5;
if (randomNum != num) {
for (int x = 0; x < randomNum; x++) {
System.out.print("*");
}
System.out.print("\n");
} else {
for (int x = 0; x < randomNum; x++) {
System.out.print("*");
}
System.out.print("\n");
System.out.println("Random Number: " + randomNum);
System.out.println("Input Number: " + num);
break;
}
}
}
}
Answer:
I am not sure on exactly how they want this but this is how I'd fill it out:
Also I can't see the whole question so I'll fill it out as best as I can.
Explanation:
Employee 1 - 78 hours - $2 an hour - $2,184 -
Employee 2 - Numbers of hours worked - their hourly pay - hours x hourly pay x days worked (if they work everyday for 2 weeks you'd x's it by 14.)
All I see is employee 1 and 78 hours so I tried my best!
Please mark brainliest and 5 stars, thanks!
Answer:
5/12
Explanation:
3/4 = 9/12 1/3 = 4/12 9/12 - 4/12 = 5/12
<span>Internet backbone is the answer</span>