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, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
question
Computers and Technology, 24.06.2019 20:00
Individuals suffering from technology overload feel distressed when deprived of computers and mobile devices.true/fasle
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
Questions on the website: 13722367