Question: Write a program that takes integers from user and writes them into a file until user inputs a negative number. The program should then read

 Write a program that takes integers from user and writes them into a file until user inputs a negative number. The program should then read the file and print sum and average of the numbers.

Question 2: Create an Employee class with name and id. Write 3 Employee objects to a file using serialization. Then using deserialization, read the Employee objects back from the file and print the name and id for each object.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Part 1 Writing integers to a file and calculating sum and average python Part 1 Input integers from ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!