A jar contains 9 red marbles numbered 1 to 9 and 3 blue marbles numbered 1 to 3. A marble is drawn at random from the jar. Find the probability that the marble is red or even-numbered?
You are given an array A consisting of N integers.
Task
Print the sum of the elements in the array.
Note: Some of the integers may be quite large.
Input Format
Output format
Print a single value representing the sum of the elements in the array.
Constraints
1<=N<=10
0<=a[i]<=10^10
A sample of 100 recorded deaths in the United States during the past year showed an average life span of 71.8 years. Assuming a population standard deviation of 8.9 years,
does this seem to indicate that the average life span today is greater than 70 years? Use a level of significance:
a. 1%
b. 5%
c. 10%
At a suburban shopping mall 70% of customers pay by ecocash.Find the probability that in a randomly selected sample of ten customers : exactly 3 pay by ecocash and more than 6 pay by ecocash
Write a program that lets user enter in a potentially unlimited series of subject marks from 0 to 100. Ensure that the numbers entered are greater than 0 and less than 100. You cannot assume that the user will enter an integer or a float. User can enter both float and integer values. If they input a negative number or a number more than hundred you should continually prompt them to enter a valid number until they do so. When the user enters a the line ”end” you should stop collecting marks.
Then use their input to generate a summary report that includes Total marks, Average mark, Highest mark and the lowest mark. Sample output is given below.
Enter a mark, 0 to 100: apple
That's not a valid mark!
Enter a price, 0 to end: -5
Marks must be positive!
Enter a mark, 0 to 100: 10
Enter a mark, 0 to 100: 20
Enter a mark, 0 to 100: 30
Enter a mark, 0 to 100: 40
Enter a mark, 0 to 100: 50
Enter a mark, 0 to 100: end
Total marks: 150.0
Average marks: 30.0
Highest mark: 50.0
Lowest mark: 10.0
europeans have a mean paid vacation each of six weeks. what is the null and alternative hypothesis of it
Briefly explain how Nozick’s entitlement theory can be applied to the land issue in South Africa.
Given class Triangle (in files Triangle.h and Triangle.cpp), complete main() to read and set the base and height of triangle1 and of triangle2, determine which triangle's area is larger, and output that triangle's info, making use of Triangle's relevant member functions.
Ex: If the input is:
3.0 4.0
4.0 5.0where 3.0 is triangle1's base, 4.0 is triangle1's height, 4.0 is triangle2's base, and 5.0 is triangle2's height, the output is:
Triangle with larger area:
Base: 4.00
Height: 5.00
Area: 10.001. What concentration of NaF do you need to add to a 0.15 M HF solution to get a buffer solution pH of 9.5? The Ka for HF is 7.4x10-4.