Area and Perimeter of square
you are given a side of square as input.Write a program to find the perimeter and area of square.
input
the input is an integer representing the length of the side of the square
output
the first line of the output should contain area of the square, and the second line of the output should contain the perimeter of the square as per the format shown in the sample output.
explanation
given the length of the side is 2 .
as the area of square is side*side and perimeter of the square is 4*side
the output should be
area of the square is : 4
perimeter of the square is : 8
sample input 1
3
sample output 1
area of the square is : 9
perimeter of the square is : 12
sample input 2
4
sample output 2
area of the square is : 16
perimeter of the square is : 16
Why is the V soln .1?, Isn't that just the solvent?
In a plant nursery, the owner thinks that the lengths of seedlings in a box sprayed with a new kind of fertilizer has an average height of 26cm. after three days and a standard deviation of 10cm. one researcher randomly selected 80 such seedlings and calculated the mean height to be 20 cm. and the standard deviation was 10cm. will you conduct a one tailed test or two- tailed test? proceed with the test with 95% confidence level
Elements in the range
You are given three numbers. Check if any of the numbers exist in the range from 10 to 20(including 10 to 20).
input
the first,second and third lines of inputs are the integers.
output
the output should be either True or False
Explanation
Given a = 2,b = 4,c = 16 , 16 is in the range between 10 and 20.
so the output should be True.
sample input 1
2
4
16
sample output 1
True
sample input 2
2
4
6
sample output 2
False
chicken egg mas the mass of 60kg.The egg is 10% of the total mass.The egg shall is made of calcium carbonate what is the mass of the calcium in the egg
String repetition-4
you are a given string.repeat the same string N times separated by space.
explanation
in the given example the string is messages , N = 3 .
so we have to repeat the string three times.then we get messages messages messages
as output
sample input 1
messages
3
sample output 1
messages messages messages
sample input 2
pop
4
sample output 2
pop pop pop pop
compare last three characters
write a program to check if the last three characters in the given two strings are same.
input
the first and second lines of inputs are the same.
output
the output should be either True or False
Explanation
given strings are apple , pimple. in both strings,the last three characters ple are common.
sample input 1
apple
pimple
sample output 1
True
sample input 2
meals
deal
sample output 2
False
There were total 1020 members in BMCC Math Club. 50% of them are female. 45 out of 1020 are from Prof. X’s class. 20% of 45 students are international students. In order to join in the Math Club, students must take one exam. You can take the exam as many times as you want. Members meet every Wednesday in Room N736.
a. 50% is a. Parameter or Statistic
b. 20% is a. Parameter or Statistic
c. 1020 is. Quantitative or Categorical
d. 736 is. Quantitative or Categorical
e. The number of times Continuous or Discrete
Assume that mitochondria contain 0.23 Molar KCL and 0.010 Molar NaCl. Calculate the grams per liter, of a carbohydrate similar to glucose with a molecular weight 240 amu, that will have the same osmolarity as the mitochondria.. Calculate answer to four decimal places, do not specify units in the answer.
The combustion of 0.1566 g benzoic acid increases the temperature of a bomb calorimeter by 2.51°C. Calculate the heat capacity of this calorimeter. (The energy released by combustion of benzoic acid is 26.42 kJ/g.)
Heat capacity = __________kJ/°C
A 0.2182-g sample of vanillin (C8H8O3) is then burned in the same calorimeter, and the temperature increases by 3.29°C. What is the energy of combustion per gram of vanillin?
Energy = _________kJ/g
Per mole of vanillin?
Energy = _________kJ/mol