In a recent survey, a researcher claimed that the average life expectancy of people in a certain country is 72 years. Is his claim correct if a random sample of 25 deaths from his country showed a mean of 71.2 years with standard deviation of 1.2 years? Use 99% confidence level.
Create an array of size 12. Swap values of 8th and 11th index and display the changed array on screen.
Create an array of size 30. Take 2 indexes from user as input and multiply the value on those indexes and display the answer on screen.
Create an array of size 15. Multiply even values of array with 3 and place them in the array
Create an array of size 20. Take input from the user and find the highest number from the array.
Create an array of size ten, get input from user, show odd index sum and even index sum, show array element by element
Create an array of size ten; get input from user as odd index has odd value [place a check that when user enters odd value then assign that value to the array element] and even indexes can have any value, show array element by element.
Create an array of size ten; get input from user, show only odd values in one go and then even values in one go.
Create an array of size ten; get input from user, show only odd index values in one go and then only even index values in one go.
Among 157 African-American men, the mean systolic blood pressure was 146 mm
Hg with a standard deviation of 27. We wish to know if on the basis of these data,
we may conclude that the mean systolic blood pressure for a population of African-
American is greater than 140.
• Setup the null and alternate hypothesis (1 mark)
• Determine the type of the test (1 mark)
• Use α=0.01, conduct the test and accept or reject the hypothesis on the basis of
the test. (Given Z_0.99=2.33) (3 marks)