Question: CPAN 155 Lab 6 Goals Understand 1/0 using Streams and Files Description A college keeps records of all professors and students in a file named

CPAN 155 Lab 6 Goals Understand 1/0 using Streams and Files Description A college keeps records of all professors and students in a file named "people.txt". Each line starts with a title (Professor/Student) followed by first name, last name and a department for a professor or a degree for a student as follows: Professor Student Blaise Pascal Julia Roberts Physics Masters Create two classes: Professor and Student with applicable fields. Write a program that will read from file people.txt", scan every line, create the necessary object (either a student or a professor) and add it to one of the two arrays (or lists): students and professors. Once the lists/arrays are ready - print both to standard output - serialize them using object streams into professors.ser" and "students.ser". Deliverables Blackboard submission of code files (txt or java) by the end of the day
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
