EECE 330 Homework 2 Assignment, Fall 2011

American University of Beirut · Data Structures and Algorithms · 1 page

All EECE 330 files
EECE 330 Homework 2 Assignment, Fall 2011, page 1

Stuck on a question? A tutor can walk you through it.

More EECE 330 files

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.