Docsity

Noun Phrase Identification Technique-Learning Java Language- Lab Assignment, Exercises of Java Programming

Toggle sidebar
bg1
Reg#.......................................... Name:…………………………….
Object Oriented Programming
Q: perform all the six steps of noun phrase identification technique to identify the classes,
instance variables, and methods in the following text.
A book shop maintains the inventory of books that are being sold at the shop. The list includes
details such as author, title, price, publisher and stock position. Whenever a customer wants a
book, the sales person inputs the title and author and the systems search the list and displays
whether it is available or not. If it is not, an appropriate message is displayed. If it is, then the
system displays the book details and requests for the number of copies required. If the requested
copies are available, the total cost of the requested copies is displayed; otherwise the message
“Required copies not in stock” is displayed.
Book
Title
:String
Author: String
accNo:int
searchBook(isbn):
Book
addBook(isbn): bool
deleteBook(isbn):bool
editBook(isbn):void
Library
Booklist[3][3]:Book
menu();
Booklist is the list of books containing books of various categories. Each row in
the array corresponds to a category. 0 1
Docsity.com
pf2

Partial preview of the text

Download Noun Phrase Identification Technique-Learning Java Language- Lab Assignment and more Exercises Java Programming in PDF only on Docsity!

Reg#.......................................... Name:……………………………. Object Oriented Programming Q: perform all the six steps of noun phrase identification technique to identify the classes, instance variables, and methods in the following text. A book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the systems search the list and displays whether it is available or not. If it is not, an appropriate message is displayed. If it is, then the system displays the book details and requests for the number of copies required. If the requested copies are available, the total cost of the requested copies is displayed; otherwise the message “Required copies not in stock” is displayed.

Book

Title:String Author: String accNo:int searchBook(isbn): Book addBook(isbn): bool deleteBook(isbn):bool editBook(isbn):void Library Booklist[3][3]:Book menu();

Booklist is the list of books containing books of various categories. Each row in

the array corresponds to a category.

Docsity.com

Reg#.......................................... Name:…………………………….

Economics 0

C.S 1

B.I 2

Add books according to the specified category.

Docsity.com