Answer:
A lot is wrong with the program given in the question. See the corrected version below:
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> int a, b, c;</em>
<em> //Three integers</em>
<em> a = 3; b = 4; c = a + b;</em>
<em> System.out.println("The value of c is " + c);</em>
<em> }</em>
<em>}</em>
Explanation:
Errors:
1. The main method had a semi colon after it. This is wrong
2. An open brace was supposed to follow the main method
3. The declaration of the variables was supposed to end with a semi colon
4. the correct comment style is // and not \\
5. Initialization of variables was supposed to end with semi colons
6. The output statement had C and not c which is the declared and initialized variable..Java is strictly typed
7. Open and closing braces for the class and method wrongly placed
8 bits = 1 byte
10 Mbps = 10/8 M bytes per second
1 frame = 50 bytes
Frame rate = 10 M / (8 x 50) = 10 M / 400 = <em>25,000 frames per second</em>
========================
If each frame has an error probability of 0.004, then (0.004 x 25,000) = 100 frames per second are damaged.
1 hour = 3,600 seconds.
100 damaged frames per second = (100 x 3,600) = <em>360,000 damaged frames per hour.</em>
Answer:
The randomNumber function only uses whole numbers between 0 and 1 because those are the unspecified minimum and maximums to get random numbers. If you want a larger range, <em>just specify the minimum and maximum.</em>
Explanation:
<em>Example code on how to specify a larger range, replace max and min with your maximum and minimum integers.</em>
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}
Omg I would die to have your points because when I get on people call me a noob because I just got the app like 3 days ago and every time I answer a question some says noob like dang I just started