Here is the the question: Consider the following structure used to keep module r
ID: 3628204 • Letter: H
Question
Here is the the question:Consider the following structure used to keep module records:
struct Module
{
string moduleName;
string moduleCode;
string lecturer;
int nrStudents;
}
Turn the module record into a class type rather than a structure type. The module class should have private
member variables for all the data. Include public member functions for each of the following:
• a default constructor that sets the module‘s name and lecturer to a blank string, the module code to seven 0’s and
the number of students to 0;
• an overloaded constructor that sets the member variables to specified values;
• member functions to set each of the member variables to a value given as an argument to the function (i.e.
mutators);
• member functions to retrieve the data from each of the member variables (i.e accessors);
Embed your class definition in a test program. The program should input a value for each of the member variables,
use the overloaded constructor to instantiate a module object and then print all the available information for that
module. Use the keyboard to supply input and display the output on the screen.