Consider a population consisting of 2,6,8,0 and 1. Suppose samples of size 2 are drawn from this population. Find the Mean and Variance of the sampling distribution of sample means.
If a positive test charge is located between two charged spheres, A and B. Sphere A has a charge of +4q and is located 0.2 meter from the test charge. Sphere B has a charge of -2q and is located 0.1 meter from the test charge. If the magnitude of the force on the test charge due to sphere A is F, what is the magnitude of the force on the test charge due to sphere B?
Find the variance and standard deviation of the probability distribution of the random variable X, which can take only the values 3,5, and 7, given that P (3) = (7)/(30),P(5) = (1)/(3),P(7) = (13)/(30)
6. Write a C++ program that take two string as input from user and check if both strings are same or not. If same, print YES, otherwise print NO.
4. A person is going on a motorway and at one point he can see roads going in three different directions. Based on the destination, he will move either toward left, right or straight. Write a C++ program that guides the traveler based on the following directions:
• If destination is Lahore, then turn left.
• If destination in Islamabad or Murree, then turn right. • Otherwise move straight.
3. Write a program that asks the user to enter a value for x and then displays the value of the following polynomial 2x^5+3x^4-x^3-2x^2+7x-6.
3. Write a program that asks the user to enter a value for x and then displays the value of the following polynomial 2x^5+3x^4-x^3-2x^2+7x-
A population consists of the four numbers 1, 2, 4 and 5. List all the possible samples of size n = 3
which can be drawn with replacement from the population.
Write a program in c++ to input your age in years.the program will convert the age in months days,hours, minutes and seconds and then print all these values on screen
Let variable = [1, [2], [[3]],[[[4]]]]
Output should be: [1, 2, 3, 4]
Dont use flatten function.
Use for loop