
Concept explainers
To write the similar program for previous exercise in another language than BASIC.

Explanation of Solution
Given:
Break a stick into three pieces to get the probability that you can join the pieces end-to-end to form a triangle. If the sum of the length of any two pieces is less than or equal to that of the third, a triangle can’t be form. This is known as Triangle Inequality. By an experiment your class can estimate the probability that three pieces of broken stick will form a triangle.
Calculation:
Let D, N, I, X, Y, R, S and T variables used in program. Where D stands for number of sticks you have to break, N stands for first end of stick that is 0, I stands for variable of for loop assign from 1 to D, X and Y are stand for the length of points distance from initial point that is 0, R assigned as X, S assigned as Y − R and T assigned for 1 − R − S. Consider the program below-
The given program in C programming language is
Program:
#include <stdio.h> #include <math.h> #include <conio.h> int main(int argc, char *argv[]) { int D=0; int N=0; int I=1; float X=0, Y=0, R, S, T, P; printf("SIMULATION--BREAKING STICKS TO MAKE TRIANGL...*I); do { // get the random number between 0 and 1; line 70, 80 X = ((float)(rand()%100))/(float)100; Y = ((float)(rand()%100))/(float)100; } while (X>=Y); // if condition for X>=Y // for lines 100-150 R = X; S = Y-R; T = 1-R-S; if (R+S <= T) continue; if (S+T <= R) continue; if (R+T <= S) continue; N = N+1; } P = (float)N/(float)D; printf("\nTHE EXPERIMENTAL PROBABILITY THAT\nA BROKEN STICK CAN FORM A TRIANGLE IS %f\n",P); return 0; }
Sample Output:
SIMULATION--BREAKING STICKS TO MAKE
HOW MANY STICKS DO YOU WANT TO BREAK:100
THE EXPERIMENTAL PROBABILITY THAT
A BROKEN STICK CAN FORM A TRIANGLE IS 0.260000
Output Explanation:
SIMULATION--BREAKING STICKS TO MAKE TRIANGLES
Enter number of sticks as 10 which you want to break that is value of variable D
HOW MANY STICKS DO YOU WANT TO BREAK:100
THE EXPERIMENTAL PROBABILITY THAT
Then you get the experimental probability equal to 0.260000 that is P=0.260000
A BROKEN STICK CAN FORM A TRIANGLE IS 0.260000
Chapter 6 Solutions
McDougal Littell Jurgensen Geometry: Student Edition Geometry
Additional Math Textbook Solutions
Calculus: Early Transcendentals (2nd Edition)
Algebra and Trigonometry (6th Edition)
Pre-Algebra Student Edition
Elementary Statistics
University Calculus: Early Transcendentals (4th Edition)
Basic Business Statistics, Student Value Edition
- Name: Date: Bell: Unit 11: Volume & Surface Area Homework 2: Area of Sectors Directions: Find the area of each shaded sector. Round to the hundredths place. 1. GH 11 in 2. KL 20 ft H F 64 G L 119 M K 3. BA 6.5 cm 4. YZ 14.2 m B 23 X 87° Y Z 5. KL = 27.1 mm J 32 L X:360-32.1 K A-3 360 7. BD 18 cm E 136 B X=32.8 127.0 (271) A: 069.13 Amm² 19=2102.13 A-136 360.16912 A:300cm² A=96.13 6. PQ = 2.8 in P R 311° 8. WZ 5.3 km V = Z 108 W D 9. HK = 25 ft G H KO 26 X 10. SR 26 m = S 73 T R Gina Wilson (All Things Algebarrow_forward538 Chapter 13 12. Given: Points E(-4, 1), F(2, 3), G(4, 9), and H(-2, 7) a. Show that EFGH is a rhombus. b. Use slopes to verify that the diagonals are perpendicular. 13. Given: Points R(-4, 5), S(-1, 9), T(7, 3) and U(4, -1) a. Show that RSTU is a rectangle. b. Use the distance formula to verify that the diagonals are congruent. 14. Given: Points N(-1, -5), O(0, 0), P(3, 2), and 2(8, 1) a. Show that NOPQ is an isosceles trapezoid. b. Show that the diagonals are congruent. Decide what special type of quadrilateral HIJK is. Then prove that your answer is correct. 15. H(0, 0) 16. H(0, 1) 17. H(7, 5) 18. H(-3, -3) I(5, 0) I(2,-3) 1(8, 3) I(-5, -6) J(7, 9) K(1, 9) J(-2, -1) K(-4, 3) J(0, -1) K(-1, 1) J(4, -5) K(6,-2) 19. Point N(3, - 4) lies on the circle x² + y² = 25. What is the slope of the (Hint: Recall Theorem 9-1.) - line that is tangent to the circle at N? 20. Point P(6, 7) lies on the circle (x + 2)² + (y − 1)² = 100. What is the slope of the line that is tangent to the circle at…arrow_forwardCan you cut the 12 glass triangles from a sheet of glass that is 4 feet by 8 feet? If so, how can it be done?arrow_forward
- Can you cut 12 glass triangles from a sheet of glass that is 4 feet by 8 feet? If so, draw a diagram of how it can be done.arrow_forwardIn triangle with sides of lengths a, b and c the angle a lays opposite to a. Prove the following inequality sin a 2√bc C α b a Warrow_forwardFind the values of x, y, and z. Round to the nearest tenth, if necessary. 8, 23arrow_forward
- 11 In the Pharlemina's Favorite quilt pattern below, vega-pxe-frame describe a motion that will take part (a) green to part (b) blue. Part (a) Part (b)arrow_forward5. 156 m/WXY = 59° 63 E 7. B E 101 C mFE = 6. 68° 8. C 17arrow_forward1/6/25, 3:55 PM Question: 14 Similar right triangles EFG and HIJ are shown. re of 120 √65 adjacent E hypotenuse adjaca H hypotenuse Item Bank | DnA Er:nollesup .es/prist Sisupe ed 12um jerit out i al F 4 G I oppe J 18009 90 ODPO ysma brs & eaus ps sd jon yem What is the value of tan J? ed on yem O broppo 4 ○ A. √65 Qx oppoEF Adj art saused taupe ed for yem 4 ○ B. √65 29 asipnisht riod 916 zelprisht rad √65 4 O ○ C. 4 √65 O D. VIS 9 OD elimiz 916 aelonsider saused supsarrow_forward
- Elementary Geometry For College Students, 7eGeometryISBN:9781337614085Author:Alexander, Daniel C.; Koeberlein, Geralyn M.Publisher:Cengage,Elementary Geometry for College StudentsGeometryISBN:9781285195698Author:Daniel C. Alexander, Geralyn M. KoeberleinPublisher:Cengage Learning

