question archive write a program to Make a class called name having data members as (first name, middle initial, last name, employee number)
Subject:Computer SciencePrice: Bought3
write a program to Make a class called name having data members as
(first name, middle initial, last name,
employee number). Create member functions for
this class that read and written an object's data to a
disk file, using ofstream, and read it back using ifstream. The read and write member functions
should be self-contained: they should include statements to open the appropriate stream and read or
written
a record. The write function can simply append its data to the end of the file. The read function
will need a way to select which record it's going to read. One way to do this is to call it with a parameter representing the record number. In main(), call these member functions to allow the user to enter data for a number of objects that are written to a file as they are entered. The program then displays all this data by reading it from the file.