determine the electrical force attraction between to balloons that are charged with the opposite type of charge but the same quantity of charge . The charge on the ballons is 6.0 x 10-7C and they are separated by a distance of 0.50 m
The y intercept is the point where the line intersects the x-axis. Is this statement true or false
The mean number of hours a Filipino worker spends on the computer is 3.1 hours per workday. Assume the standard deviation is 0.5 hours and is normally distributed, how long does a worker spend on the computer if his z-score is 1.2?
Suppose that the income elasticity of demand for potatoes is −0.5 and the cross-price elasticity of demand for potatoes, with respect to the price of carrots, is 2. What will happen to the quantity demanded of potatoes when
a. There is a recession?
Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input begins with an integer indicating the number of integers that follow.
Ex: If the input is:
5 10 5 3 21 2the output is:
2 and 3You can assume that the list of integers will have at least 2 values.
To achieve the above, first read the integers into a vector.
Hint: Make sure to initialize the second smallest and smallest integers properly.
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds). For coding simplicity, follow each output integer by a comma, even the last one. The output ends with a newline.
Ex: If the input is:
5 25 51 0 200 33
0 50then the output is:
25,0,33,(the bounds are 0-50, so 51 and 200 are out of range and thus not output).
To achieve the above, first read the list of integers into a vector.
Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with an integer indicating the number of words that follow. Assume that the list will always contain fewer than 20 words.
Ex: If the input is:
5 hey hi Mark hi markthe output is:
hey - 1
hi - 2
Mark - 1
hi - 2
mark - 1Hint: Use two vectors, one vector for the strings and one vector for the frequencies.
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value.
Ex: If the input is:
5 50 60 140 200 75 100the output is:
50,60,75,The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75.
For coding simplicity, follow every output value by a comma, including the last one.
Such functionality is common on sites like Amazon, where a user can filter results.
Integrate :
(1/2*sin2x-cos^2x)/(sin^2x-cos^2x)
1. Find the value of the finite population correction factor when:
a) n = 10 and N = 10000
b) n = 40 and N= 10,000