subject

Write a program that will a. Open the file integersfile. txt (attached to the assignment) b. Create a second file processed. txt c. Read the numbers from the file one at a time. For each number write into the second file, if possible, its i. square ii. square root. iii. reciprocal (1/number) Use a math module function for the square root. Use exception handling to trap possible errors. d. Report the number of items in the original file and the number that were successfully stored in the second file. e. Report the number of each type of error: ValueError, ZeroDivisionError,

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
What is the largest decimal number that can be represented by a binary number with 4 place values? (remember, each place in a binary number has a value of a power of 2, starting in the ones place with 20.)
Answers: 3
question
Computers and Technology, 22.06.2019 02:30
If you turn on the lock alpha button , what happens
Answers: 1
question
Computers and Technology, 22.06.2019 07:30
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
You know the right answer?
Write a program that will a. Open the file integersfile. txt (attached to the assignment) b. Create...
Questions
question
Arts, 18.12.2020 01:40
question
Mathematics, 18.12.2020 01:40
question
World Languages, 18.12.2020 01:40
question
Mathematics, 18.12.2020 01:40
question
English, 18.12.2020 01:40
question
Mathematics, 18.12.2020 01:40
question
Mathematics, 18.12.2020 01:40