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, 21.06.2019 15:40
Most networking media send data using in which data is represented by only two discrete states: 0s and 1s. a. digital signals b. contiguous signals c. ramp signals d. exponential signals
Answers: 1
question
Computers and Technology, 21.06.2019 22:00
Formula that contains a nested function that first calculates the average of the values in range e6: p6 and uses the round function to round that average to the nearest 10 dollars. use -1 for the value of the number digit argument. would the formula be =round(average(e6: p6),0
Answers: 1
question
Computers and Technology, 22.06.2019 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
You know the right answer?
Write a program that will a. Open the file integersfile. txt (attached to the assignment) b. Create...
Questions
question
Mathematics, 26.01.2021 21:40
question
Mathematics, 26.01.2021 21:40
question
Mathematics, 26.01.2021 21:40
question
Mathematics, 26.01.2021 21:40
question
Mathematics, 26.01.2021 21:40
question
Health, 26.01.2021 21:40
Questions on the website: 13722361