EECE 330 Homework 2 Assignment, Fall 2011
American University of Beirut · Data Structures and Algorithms · 1 page
Stuck on a question? A tutor can walk you through it.
More EECE 330 files
- Homework 1 · Fall 2015HomeworkView
- Homework 4 Assignment · Fall 2011HomeworkView
- Homework 3 Assignment · Fall 2011HomeworkView
- Homework 1 Assignment · Fall 2011HomeworkView
- Homework · Spring 2008HomeworkView
- Homework · Spring 2008HomeworkView
- Other Extra Lecture About Dynamic Programming · Spring 2017LabView
- Useful File MCQ · Fall 2015FileView
Show the text of this homework
EECE 330 Assignment 2.
In this assignment, you are to keep track of books in a library using a linked list structure.
You start by creating a class “book” with bookTitle, authorName, bookSubject, and isbnNumber as
data members. Each new book will be inserted into a linked list (pointers) using inserInPlace function
that puts the book in order according to its isbnNumber.
Other functions that you have to implement on this linked list are:
a-
Delete a book given its isbnNumber
b-
Delete all books given a bookSubject
c-
Pint all books given a bookSubject
d-
Change isbnNumber which changes the location of the book according to its new
isbnNumber by updating links and not by deleting and adding
Write a main program with a menu to run the above mentioned functions at the user request.
Note: The insert, delete and print you need to compile from the book and notes. Only the change
isbnNumber is a function that you have to write from scratch.