Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Python Course Programming Program that Reads Numbers from Files Exercise

Python Course Programming Program that Reads Numbers from Files Exercise

Question Description

Graded Programming Assignment 5: Focus on Basic file operations, exception handling Save a copy of the file assign5data.txt (attached to the assignment)

Write a program that will

  1. Open the file assign5data.txt
  2. Create a second file processed.txt
  3. Read the numbers from the file one at a time. For each number write into the secondfile, if possible, its i. squareii. square root.
    iii. reciprocal (1/number)Use a math module function for the square root.Use exception handling to trap possible errors.
  4. Report the number of items in the original file and the number that were successfullystored in the second file.
  5. Report the number of each type of error: ValueError, ZeroDivisionError,TypeError

Rubric is applied proportionately to each component (program) in an assignment. If only part of the assignment is submitted, only part of the total score is given.

page1image1208564976 page1image1208563280 page1image1208564160 page1image1208565568 page1image1208564768

Excellent (100)

page1image1208569008

page1image1208569952

Strong (85)

page1image1208572992

Acceptable (75)

page1image1208576592 page1image1208577072

Poor (50)

page1image1208579872 page1image1208580416

No Credit (0)

page1image1208586448 page1image1208584352

Weight (% of total)

page1image1208588624 page1image1208589168

Deliverables

page1image1208591616 page1image1208592896

All required items submitted on time in correct format on Blackboard.

page1image1208600768

Most (80-95%) required items submitted on time in correct format.

page1image1214770960

70-80% required items submitted on time in specified format.

Completed less than 70% of required items on time in specified format.

page1image1212944480 page1image1212945088

Not submitted on Blackboard, or submitted more than 20 hours late.1

10

page1image1208611040 page1image1208611584

Coding standards

page1image1208615952 page1image1208616560

Fully follows the coding guidelines as presented on Blackboard. Excellent use of white space, variables, code formatting and comments. Code is understandable, and well-organized.

page1image1208633136

Mostly follows the coding guidelines. Generally good use white space, variables, code formatting and comments.

page1image1208644944

Includes necessary file comments. Minor problems with one or more of use of white space, variables, code formatting and comments.

Doesn’t include required filecomments.
Poor use of white space, variables, code formatting and/or comments. Disorganized and messy.

page1image1208670848 page1image1208671456

Fails to identify sources for code elements obtained from outside class materials. Obvious evidence of copying.

20

page1image1208684064 page1image1208684608

Problem solution

Addresses all of the problem requirements and provides an effective, cleanly coded solution. Solution code demonstrates an understanding of course concepts.

Addresses all of the problem requirements. Minor details of the program specification are violated,

Addresses most of the problem requirements and code shows an effort to cover the course concepts

Some attempt to address problem requirements.

Problem requirements have not been addressed. Code shows little understanding of the course concepts.

40

page1image1208740240 page1image1208740784

Correctness

page1image1208747024

Program always works correctly with all suitable input, producing correct results.

page1image1208753744

Program functions correctly for suitable inputs, except for less common cases, generally producing correct results.

Program produces incorrect results for some inputs, common as well as uncommon (For example, by using incorrect formulas or expressions.)

page1image1208780848 page1image1208779120

Most results are incorrect.

All results are incorrect, or the program fails to execute because of syntax errors.

page1image1235825808 page1image1235834176

20

page1image1235838496 page1image1235835360

Output

page1image1235843328 page1image1235756320

page1image1208792304

Output is correctly formatted, as specified.

page1image1208797792

page1image1208798480

Formatting may deviate slightly from specs in some places.

page1image1208805568

Output formatting is present, but generally doesn’t followspecs.

page1image1208815952 page1image1208813840

Program output isunformatted or doesn’tinclude appropriate text elements.

page1image1208822288 page1image1208822832

No output.

page1image1208828704 page1image1208826704

10

page1image1208829200 page1image1208829616

1. No credit for deliverables == no credit for the assignment. For an assignment submitted late, without pre-approval, the maximum score will be no more than 85% of the original maximum. For the complete late policy, see the Programming Assignment guidelines.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Course Elite only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Course Elite are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Course Elite is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Course Elite, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.