Numeric Array - Frequency of Prime Factors in an Array (2009)

A class PrimeFac contains an array of 50 integers. Some of the members of the class are given below:

Class name                       : PrimeFac

Data members/ instance variables :

       num[ ]                        : array to store integers 

       freq[ ]                         : array to store the frequency of prime factors of numbers

Member functions/methods           

      PrimeFac( )                 : constructor to initialize array elements to 0

      void enter( )                 : to enter values into array num[ ]

      void frefac( )               : to determine the frequency of prime factors of the numbers

                                             stored in num[ ] and assign it to freq[ ]

      void disp( )                  : to display both the arrays

                                                     

Specify the class PrimeFac giving details of the constructor, void enter( ), void frefac( ) void disp( ). You need not write the main function.