bool LinkedList::removeElement(string someNumber, string someTitle)
This method attempts to remove the course with the parameter course number value and course title and should return true if it can find and remove the course information. It should return false otherwise (the course with the number and title does not exists in the linked list).
The following is an example run (user input is in bold letter):
Choice Action A Add CourseD Display CoursesQ QuitR Remove Course? Display Help
What action would you like to perform?APlease enter some course information:Enter a course number:CSE310Enter a course title:Data Structures and AlgorithmsEnter an index to add:0The course CSE310 with title Data Structures and Algorithms addedWhat action would you like to perform?DCourse Number: CSE310, Course Title: Data Structures and AlgorithmsWhat action would you like to perform?APlease enter some course information:Enter a course number:CSE240Enter a course title:Intro to Programming LanguagesEnter an index to add:0The course CSE240 with title Intro to Programming Languages addedWhat action would you like to perform?DCourse Number: CSE240, Course Title: Intro to Programming LanguagesCourse Number: CSE310, Course Title: Data Structures and AlgorithmsWhat action would you like to perform?APlease enter some course information:Enter a course number:CSE220Enter a course title:Programming for Computer EngineeringEnter an index to add:2The course CSE220 with title Programming for Computer Engineering addedWhat action would you like to perform?DCourse Number: CSE240, Course Title: Intro to Programming LanguagesCourse Number: CSE310, Course Title: Data Structures and AlgorithmsCourse Number: CSE220, Course Title: Programming for Computer EngineeringWhat action would you like to perform?APlease enter some course information:Enter a course number:MAT243Enter a course title:Discrete Math StructuresEnter an index to add:1The course MAT243 with title Discrete Math Structures addedWhat action would you like to perform?
Course Number: CSE240, Course Title: Intro to Programming LanguagesCourse Number: MAT243, Course Title: Discrete Math StructuresCourse Number: CSE310, Course Title: Data Structures and AlgorithmsCourse Number: CSE220, Course Title: Programming for Computer EngineeringWhat action would you like to perform?
Reviews
There are no reviews yet.