Write a class named LetterCount. It will have the following methods: void RecordLine( string &line ); void MakeEmpty(); int NumberOfOccurences( char…

Write a class named LetterCount. It will have the following methods: void RecordLine( string &line ); void MakeEmpty(); int NumberOfOccurences( char letter ); void DisplayFrequencyDistr();