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;
}}
<u><em>Answer:</em></u>
<u><em>The speed is </em></u>
<u><em>=
</em></u>
<u><em>30
</em></u>
<u><em>m
</em></u>
<u><em>s
</em></u>
<u><em>−
</em></u>
<u><em>1
</em></u>
<u><em>
</em></u>
<u><em>Explanation:
</em></u>
<u><em>The speed of a wave is given by
</em></u>
<u><em>
</em></u>
<u><em>speed
</em></u>
<u><em>(
</em></u>
<u><em>m
</em></u>
<u><em>s
</em></u>
<u><em>−
</em></u>
<u><em>1
</em></u>
<u><em>)
</em></u>
<u><em>=
</em></u>
<u><em>frequency(Hz)
</em></u>
<u><em>×
</em></u>
<u><em>wavelength (m)
</em></u>
<u><em>
</em></u>
<u><em>The frequency is </em></u>
<u><em>f
</em></u>
<u><em>=
</em></u>
<u><em>100
</em></u>
<u><em>H
</em></u>
<u><em>z
</em></u>
<u><em>
</em></u>
<u><em>The wavelength is </em></u>
<u><em>λ
</em></u>
<u><em>=
</em></u>
<u><em>0.3
</em></u>
<u><em>m
</em></u>
<u><em>
</em></u>
<u><em>The speed is
</em></u>
<u><em>
</em></u>
<u><em>v
</em></u>
<u><em>=
</em></u>
<u><em>λ
</em></u>
<u><em>f
</em></u>
<u><em>=
</em></u>
<u><em>0.3
</em></u>
<u><em>⋅
</em></u>
<u><em>100
</em></u>
<u><em>=
</em></u>
<u><em>30
</em></u>
<u><em>m
</em></u>
<u><em>s
</em></u>
<u><em>−
</em></u>
<u><em>1
</em></u>
<u><em>
</em></u>
<u><em></em></u>
<u><em></em></u>
<u><em></em></u>
Design a ringtone like it says
Answer:
The right answer is: Option A. h3
Explanation:
The purpose of using selectors in CSS is to find the elements in the HTML page to which the formatting will be applied.
Different type of selectors are used in CSS.
In the given code, h3 is the selector.
All the <h3> elements on the page will be of orange color and will have font size 12.
Hence,
The right answer is: Option A. h3
Is it a multiple choice answer? if so would like to see the answers as there are TONS of effective ways and if i list one it may not be in that list you have if its multiple choice.