You are given the following information of a company that produces cola fizzy drinks. The
company states that the mean caffeine content per bottle of a fizzy drink is 40 mg with a
standard deviation of 7.5 mg. The quality controller is convinced that it is lower. A sample of
30 randomly drawn bottles has a mean caffeine content of 39.2 mg. Can the quality
controller reject the claim? Conduct a hypothesis test at 0.05 level of significance.
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.