> g++ p2s6.cpp -o p2s6 > ./p2s6 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > a Adding a new node: Enter domain name > udel Enter full school name > Univ. of Delaware Enter mascot > Blue Hens Enter city > Newark Enter state > DE Enter founding year> 1743 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > a Adding a new node: Enter domain name > wvu Enter full school name > West Virginia Univ. Enter mascot > Mountaineers Enter city > Morgantown Enter state > WV Enter founding year> 1855 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > a Adding a new node: Enter domain name > nd Enter full school name > Notre Dame Enter mascot > Fighting Irish Enter city > South Bend Enter state > IN Enter founding year> 1843 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > u Enter domain name to search for > nd Enter a blank line to keep old value for any item. Current value of domain name > nd New value > Current value of full name > Notre Dame New value > Current value of mascot > Fighting Irish New value > Current value of city > South Bend New value > Current value of state > IN New value > Current value of foundingYear > 1843 New value > 1842 Here are the updated values: nd Notre Dame Fighting Irish South Bend IN 1842 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > l Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== udel Univ. of Delaware Blue Hens Newark DE 1743 wvu West Virginia Univ. Mountaineers Morgantown WV 1855 nd Notre Dame Fighting Irish South Bend IN 1842 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > w Enter a filename threeTeams.txt Wrote 3 teams to file threeTeams.txt Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > d Enter domain name to search for > nd Deleting this element: Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== nd Notre Dame Fighting Irish South Bend IN 1842 Deleted 1 teams from list Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > l Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== udel Univ. of Delaware Blue Hens Newark DE 1743 wvu West Virginia Univ. Mountaineers Morgantown WV 1855 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > d Enter domain name to search for > udel Deleting this element: Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== udel Univ. of Delaware Blue Hens Newark DE 1743 Deleted 1 teams from list Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > l Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== wvu West Virginia Univ. Mountaineers Morgantown WV 1855 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > r Enter a filename threeTeams.txt Added 3 new teams from file threeTeams.txt Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > l Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== wvu West Virginia Univ. Mountaineers Morgantown WV 1855 udel Univ. of Delaware Blue Hens Newark DE 1743 wvu West Virginia Univ. Mountaineers Morgantown WV 1855 nd Notre Dame Fighting Irish South Bend IN 1842 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > f Enter domain name to search for > wvu Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== wvu West Virginia Univ. Mountaineers Morgantown WV 1855 wvu West Virginia Univ. Mountaineers Morgantown WV 1855 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > d Enter domain name to search for > wvu Deleting this element: Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== wvu West Virginia Univ. Mountaineers Morgantown WV 1855 Deleted 1 teams from list Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > l Domain Full Name Mascot City St Year ====== ========= ====== ==== == ==== udel Univ. of Delaware Blue Hens Newark DE 1743 wvu West Virginia Univ. Mountaineers Morgantown WV 1855 nd Notre Dame Fighting Irish South Bend IN 1842 Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > s There are 3 teams in the list. Main Menu: a: add team to list d: delete team f: find team l: list teams q: quit program r: read file s: summarize list u: update team info w: write file Enter option > q Thanks for using this program >