Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

List the steps in the IPO process.

Answered: 1 week ago

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago