Find the unique alphabet in a string and find the index of that character If multiple unique chars are in a given string, then return the first unique character index,if there is no unique alphabet then print -1
Note: index format is 1
For example :
given string: statistics
Given string having a, c as unique chars
The first unique char is a
character an index in the given string is 3 (index is 1 format)
output: 3
For example : "helloram"
unique chars = [h,e,o,r,a,m]
first one out of them is "h
Minimize the cost of an array where
cost = summation of square of difference of two consecutive array elements.
ex:
arr = [1,2,3,4]
sum = (1-2)^2 + (2-3)^2 + (3-4)^2
Output = 3
Given a string, write a code to count all palindrome sub string in a given string. Length of palindrome sub string is greater than or equal to 2.
Which of the following statements is NOT considered as continuous random variable?
*
1 point
The number of male athletes.
The weight of new-borne each year in a hospital.
The average amount of electricity consumed per household in a month.
The amount of paint utilized in a building project.
Write a program that would print the information (name, year of joining, salary, address) of the employee by creating a class named employee.The output should be as fallow.
Name year of joining address
Robert 1994 64C- wallstreat
Sam 2000 68D- wallstreat
John 1999 26B- wallstreat
A 1.72 kg ball rolls on a frictionless horizontal surface at 4.19 m/s and collides with a stationary block of mass 1.23 kg which is attached to horizontal spring whose force constant is 1695 N/m. Right after impact, the ball bounces on the opposite direction at 1.59 m/s. To what distance will the spring be compressed?
1. A population has a mean of 90 and a standard deviation of a 10. A random sample of 20 is drawn from this population. Find standard deviation of sampling distribution of sample means.
2. Suppose samples of size 10 are drawn from a population consisting of 18 measurements with the mean of 26 and standard deviation of 8. What is the mean of the sampling distribution of sample means?
3. What is the finite population correction factor if the size of the population is 150 and the sample size is 75?
QUESTION 26
A local fire station receives on average 8.5 emergency telephone calls per hour. Assume that
these calls are Poisson distributed. Calculate the probability that
(a) the fire station will get nine calls during one hour. (2)
(b) the fire station will get five to seven (inclusive) calls during one hour. (3)
(c) the fire station will get at least 4 calls during one hour. (3)
(d) the fire station will get more than 6 calls during one hour.
Sulfur trioxide decomposes at high temperature in a sealed container according to the reaction 2SO3(g) ⇆ 2SO2(g) + O2(g)
Initially, the vessel is charged at 1000 K with SO3(g) at a partial pressure of 0.500 atm. At equilibrium the SO3 partial pressure is 0.200 atm. At equilibrium the SO3 partial pressure is 0.200 atm. Calculate the value of Kp at 1000 K.
Strategy:
Using the equilibrium table, tabulate the given intial and equilibrium partial pressures. Denote the changes in partial pressure using a variable as guided by stoichiometric coefficients in the balanced chemical equation. Solve for the unknown to calculate for the equilibrium partial pressures of SO2 and O2 and then solve for Kp.
Y=x² sin x find dy/dx