To enter the given program and run the modified program for
Explanation of Solution
Given:
The bee returned one third of the way to the previous point instead of half of the way.
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
The modified program- 10 dim
20 LET
30 LET
40 For
50 LET
60 PRINT
70 NEXT
80 END
Sample Output:
2 0.66666667
3 0.77777778
4 0.74074074
5 0.75308642
6 0.74897119
7 0.75034294
8 0.74988569
9 0.7500381
10 0.7499873
11 0.75000423
12 0.74999859
13 0.75000047
14 0.74999984
15 0.75000005
16 0.74999998
17 0.75000001
18 0.75
19 0.75
20 0.75
21 0.75
22 0.75
23 0.75
24 0.75
25 0.75
26 0.75
27 0.75
28 0.75
29 0.75
30 0.75
Output Explanation:
When N is 2 then
Chapter 2 Solutions
McDougal Littell Jurgensen Geometry: Student Edition Geometry
Additional Math Textbook Solutions
University Calculus: Early Transcendentals (4th Edition)
Elementary Statistics: Picturing the World (7th Edition)
Intro Stats, Books a la Carte Edition (5th Edition)
Elementary Statistics
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