Question: #pragma once #include #include using std::string; using std::cin; using std::cout; using std::endl; class AVLTreeNode { public: / / Should have attributes named: / / parent
#pragma once #include #include using std::string; using std::cin; using std::cout; using std::endl; class AVLTreeNode public: Should have attributes named: parent pointer to parent left pointer to left child right pointer to right child word node's string data count number of times the word appears height node's height Constructors ; Wordlist class class Wordlist private: Class attributes go here Your class MUST have a root node named root below AVLTreeNode root; DO NOT REMOVE public: public methods go here Prints useful statistics about the word list void printStatistics const; Returns the root of the AVL tree AVLTreeNode getRoot const return root; ; DO NOT REMOVE ; worldlist.h #pragma once #include #include using std::string; using std::cin; using std::cout; using std::endl; class AVLTreeNode public: Should have attributes named: parent pointer to parent left pointer to left child right pointer to right child word node's string data count number of times the word appears height node's height Constructors ; Wordlist class class Wordlist private: Class attributes go here Your class MUST have a root node named root below AVLTreeNode root; DO NOT REMOVE public: public methods go here Prints useful statistics about the word list void printStatistics const; Returns the root of the AVL tree AVLTreeNode getRoot const return root; ; DO NOT REMOVE ; #include "Wordlist.h #include using std::setprecision; using std::fixed; Prints useful statistics about the word list void Wordlist::printStatistics const cout "Number of different words: differentWords endl; cout Total number of words: totalWords endl; cout Most frequent word: mostFrequent endl; cout Number of singletons: singletons setprecision fixed singletons differentWords endl; worldlist.cpp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
