You are requested to write a very simple calculator. Your calculator should be able to handle the five basic mathematic operations – add, subtract, multiply, divide and modulus – on two input values. Your program should have the following structure: • Ask the user to enter two float variables named var1 and var2 • Ask the user to enter a character variable named operation to represent the operation to be performed on the two variables. • Perform the appropriate operation by using if-statements • The output must be given in fixed-point notation with two digits after the decimal point.
A 10 kg block is allowed to slide down a frictionless 600 incline. What is the block's acceleration?
take g = 9.8m/s2
A body with mass 600 kgis located on a 30 degressinclined plane. Calculate the pulling force without friction.
take g = 9.8m/s2
Suppose that a department contains 10 men and 15 women. How many ways are there to form a committee with six members if it must have the same number of men and women?
Oxygen, O2, at 200 bar is to be stored in a steel vessel at 20oC the capacity of the vessel
is 0.04m3
. Assuming that O2 is a perfect gas, calculate the mass of oxygen that can be
stored in the vessel. The vessel is protected against excessive pressure by a fusible plug
which will melt if the temperature rises too high. At what temperature must the plug
melt to limit the pressure in the vessel to 240bar? The molecular weight of oxygen is 32
(10.5 kg; 78.6oC)
The Average weight of 25 chocolate bars selected from a normally distributed population is 200 grams with a standard deviation of 10 grams. Find the point estimate and the confidence interval using 95%confidence level.
Steps: Solution:
3.Collect and present sample evidence.
a.Collect the sample information The sample information consists of
_____(6),_______(7)and______(8).
b.Find the point estimate. The point estimate for the population
mean is ____________(9)
The Average weight of 25 chocolate bars selected from a normally distributed population is 200 grams with a standard deviation of 10 grams. Find the point estimate and the confidence interval using 95%confidence level.
Steps: Solution:
2.Specify the confidence interval criteria.
b.Determine the test statistic to be used The test statistic is ___-test(4)
to calculate the interval.
c.State the level of confidence The level of confidence is _______(5)
A heat exchanger wall consists of a copper plate 20 mm thick. The heat transfer
coefficients on the two sides of the plate are 2700 and 7000 W/m2K, corresponding to
fluid temperatures of 92 °C and 32 °C, respectively. Assuming that the thermal
conductivity of the wall is 375 W/mK,
a. Calculate the surface temperatures in °C, and
b. Calculate the overall heat transfer in W/m2K.
INTERVAL ESTIMATE
4. Suppose that the amount of time spend by working student weekly is normally distributed with the standard deviation of 25 minutes. A random sample of 125 observations is drawn and the sample mean is computed as 150 minutes. Determine the 95% confidence interval estimate of the population mean.
Find the equation (formula) of a sphere with radius r and center C(h, k, l) and show that x2 + y2 + z2 - 6x + 2y + 8z - 4 = 0 is an equation of a sphere. Also, find its center and radius