// This is version 3 of lab test #4 for lab section L1. // You are to add a new method to the List class, found on the G: drive. // Information on the method to add can be found below. // Submit files List.h and List.cpp as assignment #11 using the submit program provided. #include "stdstuff.h" #include "List.h" void realMain () { List list; int i; for (i = 0; i < 15; i++) { list.insert ((i * i) - (8 * i) + 2); } list.outputList (); // Function "duplicateGreaterValues" duplicates every node containing // a value greater than the specified value. If the list contains no // values greater than the specified value it has no effect. // You are to add this method to class "List". // Note that your method should work properly in all circumstances, not just for this // particular list. list.duplicateGreaterValues (20); list.outputList (); } int main () { try { realMain (); } catch (exception &e) { cout << "Exception occurred " << e.what() << endl; } pause(); return 0; }