Concept explainers
To enter the given program and run on computer by changing the line 40 so that the computer will print the coordinates up to
Explanation of Solution
Given:
The simple fraction approximation by
Calculation:
The following is the required BASIC Program-
Let variable P which locate the position of points. Bee starting from point P0 which flies to point P1 and lands where 0 and 1 are the coordinates of points. Then bee returns half of the way to P0, landing at P2. From P2, the bee returns half of the way to P1, landing on P3 and so forth. Thus through BASIC program compute and print the bee’s location after 2 to 10 trip.
Program:
Let P and N are two variables where P is use for the position of bee and N is for number of position change by bee and
10 dim
20 LET
30 LET
40 For
50 LET
60 PRINT
70 NEXT
80 END
Sample Output:
2 0.5
3 0.75
4 0.625
5 0.6875
6 0.65625
7 0.671875
8 0.6640625
9 0.66796875
10 0.66601562
Now we have an update of variable N
40 for N = 2 to 40
After in above program modification N is a variable shows bee change its position from 2 to 40 times.
Sample Output:
2 0.5
3 0.75
4 0.625
5 0.6875
6 0.65625
7 0.671875
8 0.6640625
9 0.66796875
10 0.66601562
11 0.66699219
12 0.66650391
13 0.66674805
14 0.66662598
15 0.66668701
16 0.66665649
17 0.66667175
18 0.66666412
19 0.66666794
20 0.66666603
21 0.66666698
22 0.66666651
23 0.66666675
24 0.66666663
25 0.66666669
26 0.66666666
27 0.66666667
28 0.66666666
29 0.66666667
30 0.66666667
31 0.66666667
32 0.66666667
33 0.66666667
34 0.66666667
35 0.66666667
36 0.66666667
37 0.66666667
38 0.66666667
39 0.66666667
40 0.66666667
Chapter 2 Solutions
McDougal Littell Jurgensen Geometry: Student Edition Geometry
Additional Math Textbook Solutions
College Algebra (7th Edition)
Pre-Algebra Student Edition
A First Course in Probability (10th Edition)
Calculus: Early Transcendentals (2nd Edition)
Elementary Statistics (13th Edition)
- 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