1.Write a program to a binary file called emp.
dat and write into
it the employee details of some employees,available in the
form of dictionaries.
2.Write a program to get student data(roll no,name and marks)
from the user and write onto a binary file. The program
should be able to get data from the user and write onto the
file as long as the user wants.
3.Write a program to append student records to
files created in the previous program, by getting
data from the user.
4.Write a program to open the file Emp.dat,read
the objects written in it and display them.
5.Write a program to open file created and used
and display the students record in it.
6.Write a program to open file Stu.dat and search
for records with roll numbers as 12 or 14. If
found,display the records.
7.Read file stu.dat created in earlier program.
8. Consider the binary file Stu.dat storing student
details, which you created earlier and write a program
to update the records of the file Stu.dat so that those
who have scored more than 81.0 get 2 bonus marks.
9. Display the records of the file Stu.dat which is
modified earlier.
10. Write a program to modify the name of roll no 12
as Gurnam in file Stu.dat
11. Write a program to create a CSV file to store
student data(Rollno,Name,marks). Obtain data from
the user and write 5 records into the file.
12. The data of winners of four rounds of a
competitive programming competition is given. Write
a program to create a csv file(compresult.csv) and
write the given data into it
13. Write a program to read the records of this csv
file and display them.
14. The csv file(compresult.csv) used in the previous
program was created on Windows OS where the
EOL character is ‘\r\n’. Modify the code of the
previous program so that the blank lines for every
EOL are not displayed.
15. Write a program to create a csv file by
suppressing EOL translation.
16. Write a program to read and display the contents
of Employee.csv created in the previous program.