Answer:
Number of packets ≈ 5339
Explanation:
let
X = no of packets that is not erased.
P ( each packet getting erased ) = 0.8
P ( each packet not getting erased ) = 0.2
P ( X ≥ 1000 ) = 0.99
E(x) = n * 0.2
var ( x ) = n * 0.2 * 0.8
∴ Z = X - ( n * 0.2 ) /
~ N ( 0.1 )
attached below is the remaining part of the solution
note : For the value of <em>n</em> take the positive number
That would be CTRL+K
https://quizlet.com/122913134/keyboard-shortcuts-flash-cards/
hope this helps!
Here's my code for that, consider it under the WTFPL (http://www.wtfpl.net/). Here is a pastebin of the code, as to avoid text formatting. (Link: https://pastebin.com/S3BDGxqm Raw: https://pastebin.com/raw/S3BDGxqm)
package javaapplication6;
import java.util.Scanner;
public class JavaApplication6 {
public static void main(String[] args) {
Scanner myScanner = new Scanner(System.in);
boolean a;
int s;
System.out.println("Enter an int");
s = myScanner.nextInt();
a = hasEight(s);
System.out.println(a);
}
private static boolean hasEight(int s)
{
String str = String.valueOf(s);
return str.contains("8");
}
}