Question: CSEN 2310 Object Oriented Software Engineering, Fall 2018 Assignment 3 Due date: October 17 For this assignment you are to develop a program to manage
CSEN 2310 Object Oriented Software Engineering, Fall 2018 Assignment 3 Due date: October 17 For this assignment you are to develop a program to manage the book holdings of a small virtual library. Your virtual library program should utilize the custom class for books e Book class) developed in your solution to Assignment 2. The virtual library program should simulate the book lending transactions that take place within a real library. To do so it should perform the following tasks: Create Book objects to represent the books in your virtual library. As the Book objects are created, use the constructor for the Book class to initialize the author tle, and number of pages attributes. Your virtual library should contain at least the following 5 Book objects (you can add additional ones if you like): o o o o "Gone with the Wind". "Margaret Mitchell", 833 pages "Of Mice and Men", "John Steinbeck", 12 pages "A Tale of Two Cities". "Charles Dickens", 304 pages "1984", "George Orwell", 328 pages Tipping Point", "Malcolm Gladwell, 301 pages The program should next display a numbered list of the books currently contained in the virtual library. like "The books currently contained in the library are: "and then printing a String based representation for each of the books contained in the virtual library indicating the book's title, author, number of pages, and status (whether it is currently checked out or not). The toString0 method of the Book class should be used to generate the String based representation for book objects. One book object should be printed per line. The output shown in the sample program runs available at the Blackboard area for Assignment 3 provide examples of an appropriate listing of Book objects. It should do so by first printing an informat The program should then enter a main processing loop in which it will repeatedly: Display a list of commands from which the user of the virtual library program can choose. o The commands that should be supported are ."C to checkout a book "R": to return a book ."L: to print a list of the book holdings . "X": to exit the virtual library program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
