Question: You create a program using a while loop to sum the fractions from 1 / 2 to 1 / 1 0 0 . The lines

You create a program using a while loop to sum the fractions from 1/2 to 1/100. The lines of this program are shown below out of order. Put them in order to create a functional program that achieves this outcome. Assume that the indentation for each line is correct.
Partial Credit allowed. Negative Scores turned off.
-
total_sum = total_sum +1/i
-
i =2
-
total_sum =1/i
-
while i<100:
-
i = i +1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!