Write a recursive function that returns number of occurrences of a certain letter in a given string.
Let the function prototype be int countLetter(char letter, string str). For example, if
letter = "l" and str = "lollipop", the function should return 3.
Write console application that initializes at least five variables or constant with different data types then display their values. Provide a meaningful identifier of the variable or constant.
Ø Calculate the entropy change, ΔSO for the following reactions using tabulated standard entropy values and figure out if the resulting values obtained are consistent with the expected entropy change as predicted qualitatively.
a. thermal decomposition of NaNO3
2 NaNO3(s) ---> NaNO2(s) + O2(g)
SO values at 25°C
NaNO3(s) = 116.5 /mol-K
NaNO2(s) = 103.8 J/mol-K
O2(g) = 205 J/mol-K
Create a console program that will perform the following:
•
Ask the user to enter five (5) grades
•
Compute the average of the grades
•
Round of the average using method of Math class
Example output:
Enter 5 grades separated by new Line.
90
83
87
98
93
The average is 90.2 and round off to 90.
Which of the following species is the least nucleophilic? Justify
(A) (CH3)3CO- (B) H2O (C) (CH3)3N (D) BF3 (E)CN?
Which isomer undergoes SN1 reaction most rapidly? Justify.
(A) 1-bromo-1-butene (B) 2-bromo-1-butene
(C) 3-bromo-1-butene (D) 4-bromo-1-butene
Change Q= x² + 2y² + 2z² - 2xy - 2yz + zx into real canonical form and find its rank and signature.
Motion of a particle is determined by the equation
d x dx x t
dt dt
2
2
-
-
4 8 20cos2
The particle starts from rest at x = 0. Find x(t).
You've learned in the past lessons on how to use square root functions, right? Then let's take your knowledge to the test. Print out the square root of a given integer with only two decimal places.
Ready, solve, and go!
Input
A line containing an integer.
4
Output
A line containing a decimal with two decimal places.
2.00
What is the mass percentage of 125g of fructose dissolved in 375mL of water?