csc-113-Lab.10 - the title T, and display its information....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS / CS DEPARTMENT CSC-113, SPRING 2010 LAB 10 – FILE INPUT/OUTPUT To implement a system for managing books in a library, we propose the following UML diagram. Class Book: setBook(): Reads the title of the book and its pages from keyboard and then fills the book. Display(): displays the title of the book and its pages. openOutputFile(in :String FF): Stores the pages to the file FF. openInputFile(in :String FF): Reads the pages from file FF. Class Library: storeByAuthor( in Author: String, in H: String ): Stores all books of the same author to the file H. readByTitle(in H: String, in T: String): reads from the file H the books that have
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the title T, and display its information. Question. Implement all classes using Java and write a main class to test your system Library - name: String + Library(in N: String, in size: int) + addBook(in B: Book): Boolean + storeByAuthor( in Author: String, in H: String) + readByTitle(in H: String, in T: String) - number: int - text: String Page + Page() + Page(in number: int, in T: String) + display() + getters & setters Book - title: String - author: String + Book(in size: int) + setBook() + display() + openOutputFile(in FF:String) + openInputFile(in FF:String) + getters & setters 1 * 1 *...
View Full Document

This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Ask a homework question - tutors are online