McDougal Littell Jurgensen Geometry: Student Edition Geometry
McDougal Littell Jurgensen Geometry: Student Edition Geometry
5th Edition
ISBN: 9780395977279
Author: Ray C. Jurgensen, Richard G. Brown, John W. Jurgensen
Publisher: Houghton Mifflin Company College Division
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 6.4, Problem 2BE
To determine

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

Expert Solution & Answer
Check Mark

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 TRIANGLES

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

Ch. 6.1 - Prob. 11CECh. 6.1 - Prob. 12CECh. 6.1 - Prob. 13CECh. 6.1 - Prob. 14CECh. 6.1 - Prob. 15CECh. 6.1 - Prob. 16CECh. 6.1 - Prob. 17CECh. 6.1 - Prob. 18CECh. 6.1 - Prob. 19CECh. 6.1 - Prob. 20CECh. 6.1 - Prob. 1WECh. 6.1 - Prob. 2WECh. 6.1 - Prob. 3WECh. 6.1 - Prob. 4WECh. 6.1 - Prob. 5WECh. 6.1 - Prob. 6WECh. 6.1 - Prob. 7WECh. 6.1 - Prob. 8WECh. 6.1 - Prob. 9WECh. 6.1 - Prob. 10WECh. 6.1 - Prob. 11WECh. 6.1 - Prob. 12WECh. 6.1 - Prob. 13WECh. 6.2 - Prob. 1CECh. 6.2 - Prob. 2CECh. 6.2 - Prob. 3CECh. 6.2 - Prob. 4CECh. 6.2 - Prob. 5CECh. 6.2 - Prob. 6CECh. 6.2 - Prob. 7CECh. 6.2 - Prob. 8CECh. 6.2 - Prob. 9CECh. 6.2 - Prob. 10CECh. 6.2 - Prob. 11CECh. 6.2 - Prob. 12CECh. 6.2 - Prob. 1WECh. 6.2 - Prob. 2WECh. 6.2 - Prob. 3WECh. 6.2 - Prob. 4WECh. 6.2 - Prob. 5WECh. 6.2 - Prob. 6WECh. 6.2 - Prob. 7WECh. 6.2 - Prob. 8WECh. 6.2 - Prob. 9WECh. 6.2 - Prob. 10WECh. 6.2 - Prob. 11WECh. 6.2 - Prob. 12WECh. 6.2 - Prob. 13WECh. 6.2 - Prob. 14WECh. 6.2 - Prob. 15WECh. 6.2 - Prob. 16WECh. 6.2 - Prob. 17WECh. 6.2 - Prob. 18WECh. 6.2 - Prob. 19WECh. 6.2 - Prob. 20WECh. 6.2 - Prob. 21WECh. 6.2 - Prob. 22WECh. 6.2 - Prob. 1MRECh. 6.2 - Prob. 2MRECh. 6.2 - Prob. 3MRECh. 6.2 - Prob. 4MRECh. 6.2 - Prob. 5MRECh. 6.2 - Prob. 6MRECh. 6.2 - Prob. 7MRECh. 6.2 - Prob. 8MRECh. 6.2 - Prob. 9MRECh. 6.3 - Prob. 1CECh. 6.3 - Prob. 2CECh. 6.3 - Prob. 3CECh. 6.3 - Prob. 4CECh. 6.3 - Prob. 5CECh. 6.3 - Prob. 6CECh. 6.3 - Prob. 7CECh. 6.3 - Prob. 8CECh. 6.3 - Prob. 9CECh. 6.3 - Prob. 10CECh. 6.3 - Prob. 1WECh. 6.3 - Prob. 2WECh. 6.3 - Prob. 3WECh. 6.3 - Prob. 4WECh. 6.3 - Prob. 5WECh. 6.3 - Prob. 6WECh. 6.3 - Prob. 7WECh. 6.3 - Prob. 8WECh. 6.3 - Prob. 9WECh. 6.3 - Prob. 10WECh. 6.3 - Prob. 11WECh. 6.3 - Prob. 12WECh. 6.3 - Prob. 13WECh. 6.3 - Prob. 14WECh. 6.3 - Prob. 15WECh. 6.3 - Prob. 16WECh. 6.3 - Prob. 17WECh. 6.3 - Prob. 18WECh. 6.3 - Prob. 19WECh. 6.3 - Prob. 20WECh. 6.3 - Prob. 1ST1Ch. 6.3 - Prob. 2ST1Ch. 6.3 - Prob. 3ST1Ch. 6.3 - Prob. 4ST1Ch. 6.3 - Prob. 5ST1Ch. 6.3 - Prob. 6ST1Ch. 6.3 - Prob. 7ST1Ch. 6.3 - Prob. 8ST1Ch. 6.3 - Prob. 9ST1Ch. 6.3 - Prob. 10ST1Ch. 6.4 - Prob. 1CECh. 6.4 - Prob. 2CECh. 6.4 - Prob. 3CECh. 6.4 - Prob. 4CECh. 6.4 - Prob. 5CECh. 6.4 - Prob. 6CECh. 6.4 - Prob. 7CECh. 6.4 - Prob. 8CECh. 6.4 - Prob. 9CECh. 6.4 - Prob. 10CECh. 6.4 - Prob. 11CECh. 6.4 - Prob. 12CECh. 6.4 - Prob. 13CECh. 6.4 - Prob. 14CECh. 6.4 - Prob. 15CECh. 6.4 - Prob. 16CECh. 6.4 - Prob. 17CECh. 6.4 - Prob. 18CECh. 6.4 - Prob. 19CECh. 6.4 - Prob. 20CECh. 6.4 - Prob. 1WECh. 6.4 - Prob. 2WECh. 6.4 - Prob. 3WECh. 6.4 - Prob. 4WECh. 6.4 - Prob. 5WECh. 6.4 - Prob. 6WECh. 6.4 - Prob. 7WECh. 6.4 - Prob. 8WECh. 6.4 - Prob. 9WECh. 6.4 - Prob. 10WECh. 6.4 - Prob. 11WECh. 6.4 - Prob. 12WECh. 6.4 - Prob. 13WECh. 6.4 - Prob. 14WECh. 6.4 - Prob. 15WECh. 6.4 - Prob. 16WECh. 6.4 - Prob. 17WECh. 6.4 - Prob. 18WECh. 6.4 - Prob. 19WECh. 6.4 - Prob. 20WECh. 6.4 - Prob. 21WECh. 6.4 - Prob. 22WECh. 6.4 - Prob. 23WECh. 6.4 - Prob. 24WECh. 6.4 - Prob. 1AECh. 6.4 - Prob. 2AECh. 6.4 - Prob. 1BECh. 6.4 - Prob. 2BECh. 6.4 - Prob. 3BECh. 6.5 - Prob. 1CECh. 6.5 - Prob. 2CECh. 6.5 - Prob. 3CECh. 6.5 - Prob. 4CECh. 6.5 - Prob. 5CECh. 6.5 - Prob. 6CECh. 6.5 - Prob. 7CECh. 6.5 - Prob. 8CECh. 6.5 - Prob. 9CECh. 6.5 - Prob. 10CECh. 6.5 - Prob. 1WECh. 6.5 - Prob. 2WECh. 6.5 - Prob. 3WECh. 6.5 - Prob. 4WECh. 6.5 - Prob. 5WECh. 6.5 - Prob. 6WECh. 6.5 - Prob. 7WECh. 6.5 - Prob. 8WECh. 6.5 - Prob. 9WECh. 6.5 - Prob. 10WECh. 6.5 - Prob. 11WECh. 6.5 - Prob. 12WECh. 6.5 - Prob. 13WECh. 6.5 - Prob. 14WECh. 6.5 - Prob. 15WECh. 6.5 - Prob. 1ST2Ch. 6.5 - Prob. 2ST2Ch. 6.5 - Prob. 3ST2Ch. 6.5 - Prob. 4ST2Ch. 6.5 - Prob. 5ST2Ch. 6.5 - Prob. 6ST2Ch. 6.5 - Prob. 7ST2Ch. 6.5 - Prob. 8ST2Ch. 6.5 - Prob. 9ST2Ch. 6 - Prob. 1CRCh. 6 - Prob. 2CRCh. 6 - Prob. 3CRCh. 6 - Prob. 4CRCh. 6 - Prob. 5CRCh. 6 - Prob. 6CRCh. 6 - Prob. 7CRCh. 6 - Prob. 8CRCh. 6 - Prob. 9CRCh. 6 - Prob. 10CRCh. 6 - Prob. 11CRCh. 6 - Prob. 12CRCh. 6 - Prob. 13CRCh. 6 - Prob. 14CRCh. 6 - Prob. 15CRCh. 6 - Prob. 16CRCh. 6 - Prob. 17CRCh. 6 - Prob. 18CRCh. 6 - Prob. 1CTCh. 6 - Prob. 2CTCh. 6 - Prob. 3CTCh. 6 - Prob. 4CTCh. 6 - Prob. 5CTCh. 6 - Prob. 6CTCh. 6 - Prob. 7CTCh. 6 - Prob. 8CTCh. 6 - Prob. 9CTCh. 6 - Prob. 10CTCh. 6 - Prob. 11CTCh. 6 - Prob. 12CTCh. 6 - Prob. 13CTCh. 6 - Prob. 14CTCh. 6 - Prob. 15CTCh. 6 - Prob. 16CTCh. 6 - Prob. 1ARCh. 6 - Prob. 2ARCh. 6 - Prob. 3ARCh. 6 - Prob. 4ARCh. 6 - Prob. 5ARCh. 6 - Prob. 6ARCh. 6 - Prob. 7ARCh. 6 - Prob. 8ARCh. 6 - Prob. 9ARCh. 6 - Prob. 10ARCh. 6 - Prob. 11ARCh. 6 - Prob. 12ARCh. 6 - Prob. 13ARCh. 6 - Prob. 14ARCh. 6 - Prob. 15ARCh. 6 - Prob. 16ARCh. 6 - Prob. 17ARCh. 6 - Prob. 18ARCh. 6 - Prob. 19ARCh. 6 - Prob. 1CURCh. 6 - Prob. 2CURCh. 6 - Prob. 3CURCh. 6 - Prob. 4CURCh. 6 - Prob. 5CURCh. 6 - Prob. 6CURCh. 6 - Prob. 7CURCh. 6 - Prob. 8CURCh. 6 - Prob. 9CURCh. 6 - Prob. 10CURCh. 6 - Prob. 11CUR
Knowledge Booster
Background pattern image
Geometry
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, geometry and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Elementary Geometry For College Students, 7e
Geometry
ISBN:9781337614085
Author:Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:Cengage,
Text book image
Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning
Sequences and Series Introduction; Author: Mario's Math Tutoring;https://www.youtube.com/watch?v=m5Yn4BdpOV0;License: Standard YouTube License, CC-BY
Introduction to sequences; Author: Dr. Trefor Bazett;https://www.youtube.com/watch?v=VG9ft4_dK24;License: Standard YouTube License, CC-BY