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
1) A 149.3-g sample of a metal at 75.9°C is added to 149.3 g H2O at 14.9°C. The temperature of the water rises to 18.4°C. Calculate the specific heat capacity of the metal, assuming that all the heat lost by the metal is gained by the water. The specific heat capacity of water is 4.18 J/°C·g.
Specific heat capacity = ________J/°C·g
2) In a coffee-cup calorimeter, 110.0 mL of 1.4 M NaOH and 110.0 mL of 1.4 M HCl are mixed. Both solutions were originally at 21.7°C. After the reaction, the final temperature is 31.1°C. Assuming that all the solutions have a density of 1.0 g/cm^3 and a specific heat capacity of 4.18 J/°C·g, calculate the enthalpy change for the neutralization of HCl by NaOH. Assume that no heat is lost to the surroundings or to the calorimeter.
ΔH = _________kJ/mol
an electron has a speed of 500m/s accurate to 0.0001% with what fundamental accuracy can we locate the position of the electron?
Derive the transfer function 𝐺1 (𝑠) = 𝑋(𝑠)/𝑈(𝑠) for the first-order system given by the dynamic equation 𝑑x/𝑑𝑡 + 𝑘𝑥 = 𝑢(𝑡). [2]
Make Class Students, having
1. Private data items (First Name, Full Name, Address),
2. Public member functions, getData, showData.
3. Main () function
Create Array of objects (students), (maximum 5 students), call member functions
getData, showData const
Chlorine gas (Cl2) occupies a volume of 25.0 mL at 310K. Calculate the volume it will occupy when heated to 590 K.