create two classes, first class ‘Point’ with two data
members x and y. Provide appropriate constructors, get, set or display methods.
Create the second class ‘Triangle’ with three points as its data members. Provide
appropriate constructors for this class and a display method which calls the display methods of points.
In the main function, declare three points and pass them to the constructor of an instance of the triangle class and pass direct values to the second instance of the triangle class without creating points instances. Call the display method of triangle to verify the coordinates of the triangle.
prototypes
Point():
void insertPoint(int, int):
void displayPoint(int):4. Triangle():
Triangle(Point, Point, Point):
Triangle(int, int, int, int, int, int):
void insertData():
void displayData():
NOTE: Define functions outside of the class using scope resolution operator except
constructors and destructors.
Solving Problems Involving Sample Size Determination
Apply the knowledge you obtained from the discussion by solving the given problems below.
1. A 95% confidence interval has to be created to estimate the mean volume of contents in the
bottles of Honey-Z. Assume that the population standard deviation is 30 ml. Calculate the sample
size needed if the margin of error is no more than:
a. 6 ml
b. 5 ml
c. 4ml
d. 3 ml
2. How large sample size is required to determine the mean IQ of seventh graders of Luis Palma
National High School within +5 points, population standard deviation of 25, and with the following
confidence level?
a. 98%
b. 95%.
c. 90%.
d. 80%.
A grandfather clock on earth has a pendulum with a period of 1.0. Calculate the length of the pendulum
Computing Appropriate Sample Size Using the Length of the Interval
A. Determine the minimum sample size for each of the following:
a. 95% confidence level, E = 5.8 , "\\sigma" = 40
b. 96% confidence level, E =6, "\\sigma" = 55
c. 99% confidence level, E = 6.5, "\\sigma" = 65
Computing for the Length of the Confidence Interval
Solve the following.
1. A random sample of size 120 has a standard deviation of 25. What is the margin of error
for a 90% confidence level?
2. Compute the length of the confidence interval with a sample size of 220 and with a standard
deviation 60 having an 80% confidence level.
3. The average price of 50 Philippine-made shirts is PIs150 and the population standard
deviation is Pts55. Find the length of the confidence interval of the true average price of the
shirts using a 95% confidence level.
You are planning to buy a cellphone with a good quality in order to attend the online class.
The average price of 50 cellphones is Php13,500 with a margin of error of Php 273.65 and a
confidence level of 99%.
What is the lower limit?
What is the upper limit?
What is the confidence interval?
If you have P13,100.00, is the amount lies within the confidence interval?
An online seller of yema cake, which is very popular in Tayabas Quezon surveyed several
customers. Fifty-two percent (52) of the customers were satisfied with the services that were
offered with a 3.98% margin of error. Determine the confidence interval using this information.
The average percentage of people who are satisfied with the product is_
The lower limit of confidence interval is
The upper limit of confidence interval is
The confidence interval is
How did the ideal gas laws apply in internal combustion engines? give claim, evidence and reasoning.
from the window of her condo, chang min measures an angle of elevation of 25 degrees to the top of the nearby building, 80 meters away. if the angle of depression to the foot of same building is 10 degrees. how tall is the nearby building?
Consider two dimensional square lattice site of side 0.5nm.At what electron
momentum values do the sides of the first Brillouin zone come? What is the
energy of free electron with this momentum.