Write a program using standard string functions that accepts a price of an item and
display its coded value. The base of the key is:
X C O M P U T E R S
0 1 2 3 4 5 6 7 8 9
Sample Input/output Dialogue:
Enter Price: 489.50
Coded Value: PRS.UX
A spaceship is traveling at half the speed of light (0.5c). Their onboard clock shows that they traveled for a full year. How much time passed on Earth during their “year”? (Give your answer in years)
A solution is made by dissolving 0.100 mole of NaCl in 8.60 mole of water.
a) What is the mole fraction of the solute?
b) What is the mass percent of the solute?
c) What is the molality of the solute?
A solution of 20.91 % by weight H2SO4 has a specific gravity of 1.150. What is the
normality of this solution? Water is added to dilute this solution to a solution of
3.03% by weight H2SO4 (SG= 1.020). What is the new normality of the resulting
solution and how were they mixed? (Assume 100 mL of the original solution was
used.)
Rulers during the early Middle Ages relied on the church for:
Write a C++ program to input the radius of a circle from user and find diameter,
circumference and area of the given circle using function.
Use the following formula:
Diameter = 2r
Circumference = 2 π r
Area = π r2
Note: π = 3.14
Write a C++ program to input a number from user and check whether given number is even or odd using functions.
Write a function arraylist which receives an array of integer values. The list of elements are
the following:
20, 40, 60, 80
50, 90, 70, 10
30, 100, 200, 300
A random sample of 60 Grade 11 students’ ages is obtained to estimate the mean ages of all Grade 11 students. Suppose the sample mean is 17.3 and the population variance is 18,
What is the point estimate of the population parameter?
Find the 95% confidence interval for the population parameter?
Find the 99% confidence interval for the population parameter?
N=10 X= 82.5; s = 3. The parent population is normally distributed. Use the 95% confidence level to find the interval estimate for µ.
What effect will the disease most likely have on the golden eagle’s ecological community?
A. The swift fox and prairie dog populations will increase while that of the badger will decrease.
B. The badger and prairie dog populations will increase while that of the swift fox will decrease.
C. The badger and swift fox populations will increase while that of the prairie dog will decrease.
D. The prairie dog population will increase while that of the swift fox and badger will decrease.