Write a program to print the following,
Sample Input1
after
4
a b c d
f e f g
t e r r
a b i j
Sample Output1
[(0, 0), (1, 0), (2, 0), (2, 1), (2, 2)]
Calculate the wavelength of a particle with masses 9.11x10-31Kg travelling at speed 1.0x107 m/s and that of a ball of mass 0.1Kg travelling at 35 m/s. Comment on the significance of the wavelengths calculated.
18, 19, 21, 27, 20
A new drug on the market is claimed by its manufacturers to reduce overweight women by 4.55 kg per month with a standard deviation of 0.91 kg. Forty women chosen at random have reported losing an average of 4.05 kg within a month. Does this data Suppose the claim of the manufacturer at 0.05 level of significance? Use the five steps of hypothesis.
A new drug on the market is claimed by its manufacturers to reduce overweight women by 4.55 kg per month with a standard deviation of 0.91 kg. Forty women chosen at random have reported losing an average of 4.05 kg within a month.
Suppose the current annual salary of all teachers in the Philippines have a normal distribution with a mean of 95,000 pesos and a standard deviation of 20,000 pesos.
a. Find the probability that the annual salary of a randomly selected teacher would be between 56,000 and 76,000.
b. Find the probability that the annual salary of a randomly selected teacher would be at least 50,000 pesos.
c. Find the probability that the annual salary of a randomly selected teacher would be 126,000 pesos.
Program
Write a program to print the following, Given a word W and pattern P, you need to check whether the pattern matches the given word.The word will only contain letters(can be Uppercase and Lowercase). The pattern can contain letters, ? and *.
? : Can be matched with any single letter.
* : Can be matched with any sequence of letters (including an empty sequence).If the pattern matches with the given word, print True else False.
Sample Input1
3
Hello *l?
Hell He?ll
Hell ?*
Sample Output1
True
False
True
Create an Assembly Language Program with the following arithmetic operations.
a.) 2+2-3+1*2-2 = 2
b.) 5-1*2+1-7*2 = 4
Draw a tree diagram to find the number of possible outcomes.
Martha has 4 pants and 3 shirts. How many different pairs of pants and shirts can he wear?