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
Part 1 Writing integers to a file and calculating sum and average python Part 1 Input integers from ... View full answer
Get step-by-step solutions from verified subject matter experts
