Vehicle Parts & Accessories Logo

Related Topics:

Posted on Oct 02, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Write a program which prints out the decimal equivalents of the series of fractions 1/2, 1/4, 1/8, 1/16, etc. in a column. (You can't continue this forever, but do it for fourteen steps.) Now print a column beside this one with the sum of all the fractions printed up to that point. The numbers should start .5, .75, .875, etc. Because the intermediate results are wanted, one cannot dispense with a loop. Can the sum ever reach the total one? Why or why not? Program requirement: Python. Short writeup ? Design (10 marks) ? Name, CMPT140, Lab 1, date ? Statement of the problem ? Discussion of solution strategy ? Code (30 marks) ? Name, etc. again in code header ? Well-commented code, formatted and indented ? Clear, well-chosen identifiers (variable names) ? Output (10 marks) ? A couple runs with different input

1 Answer

Anonymous

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Expert 284 Answers
  • Posted on Oct 02, 2009
Anonymous
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Oct 20, 2008
Answers
284
Questions
0
Helped
114498
Points
810

You don't really expect us to do your home work for you do you?
You won't learn anything if we do that :)

Why don't you have a go at it and if you get stuck ask here for help.

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

63 views

Ask a Question

Usually answered in minutes!

Top Python Vehicle Parts & Accessories Experts

john h

Level 3 Expert

29497 Answers

Arnie Burke
Arnie Burke

Level 3 Expert

7373 Answers

Jonathan Buck
Jonathan Buck

Level 3 Expert

447 Answers

Are you a Python Vehicle Part and Accessory Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...