Math, asked by jit2189, 1 month ago

n your study the size of the population is 10,000. What is the size of your sample if you
allow 2% margin of error

Answers

Answered by Piyushthakur1432
0

Step-by-step explanation:

import java.util.*;

public class prog1

{

public static void main(String arg[])

{

Scanner sc=new Scanner(System.in);

double a,b,c,d,e,s,p,avg;

System.out.println("Enter five numbers");

a=sc.nextDouble();

b=sc.nextDouble();

c=sc.nextDouble();

d=sc.nextDouble();

e=sc.nextDouble();

s=a+b+c+d+e;

p=a*b*c*d*e;

avg=s/5;

System.out.println("Sum="+s);

System.out.println("Product="+p);

System.out.println("Average="+avg);

}

}

Similar questions