Answer:
Explanation:
The following code is written in Java and loops through 10 times. Each time generating 2 random dice rolls. If the sum is 10 it breaks the loop and outputs a "You Win" statement. Otherwise, it outputs "You Lose"
import java.util.Random;
class Brainly {
public static void main(String[] args) {
UseRandom useRandom = new UseRandom();
boolean youWin = false;
for (int x = 0; x<10; x++) {
int num1 = useRandom.getRandom(6);
int num2 = useRandom.getRandom(6);
if ((num1 + num2) == 10) {
System.out.println("Number 1: " + num1);
System.out.println("Number 2: " + num2);
System.out.println("You Win");
youWin = true;
break;
}
}
if (youWin == false) {
System.out.println("You Lose");
}
}
}
class UseRandom{
public int getRandom(int n)
{
Random r=new Random();
int rand=r.nextInt(n);
return rand;
}}
They need to make sure your building is easy to move around in. Beyond the building itself, architecture and design can help bring balance to people's lives. ... Well-designed schools create better learning environments. Workplaces with good architecture experience higher productivity.
Answer:
The formula to enter in E14 is as follows:
=DAYS(D14,$E$10)
Explanation:
Required
Formula to calculate the number of days between E10 and D14
The syntax to do this is:
=DAYS(end_date,start_date)
So, we have:
=DAYS(D14,E10)
The question requires a mix of relative and mixed references because cell E10 will be constant in calculating the difference for dates in other cells.
In other words, the initial date is constant for all
So, the update formula is:
=DAYS(D14,$E$10)
Notice the $ between in E10; this represents mixed referencing
When dragged to E15 till E68, the formulas in the respective cells will be:
=DAYS(D15,$E$10) .............................. =DAYS(D68,$E$10)
Answer:
B . It amplifies the power to speed up the motor and generate more torque