To enter the given program and run on computer by changing the line 50 .
Explanation of Solution
Given:
The line 50 will be 50 LET
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
The result is same as the program 1.
Output Explanation:
When executed program asked for values which is going to executed in loops. N assigned value
This result is as same as program 1.
Consider the equation given below that is as like formula
Thus each term series reflect the bee’s return half of the way from
This equation shows as same as the program been written above.
Chapter 2 Solutions
McDougal Littell Jurgensen Geometry: Student Edition Geometry
Additional Math Textbook Solutions
Basic Business Statistics, Student Value Edition
Algebra and Trigonometry (6th Edition)
Elementary Statistics (13th Edition)
Elementary Statistics
Introductory Statistics
College Algebra (7th 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