Assignment No. 01
CS506- Web Design and Development
Total Marks: 20
Due Date: 24/11/2015
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit if:
Your submission must include:
Note: Use Notepad or Notepad++ for coding and JDK package for java source code compilation and running (A guideline document on JDK installation and configuration is given in course download section)
The objective of this assignment is to
You are required to write a java program which contains only two classes named as “BookInfo” and “BookMgtSys”.
BookInfo class must have the following data members:
When you will add book then it will increment variable Total Books and decrement when you will delete book.
BookInfo class must have the following member methods:
BookMgtSys is a public driver class that contains the main() method. The name of you file should be BookMgtSys as it is a public class in your program.
Default constructor: The default constructor will create an ArrayList.
Parameterized constructor: It should take three String parameters named as (ISBN, Book Name, and Author Name) and initializes the data members values with the passed parameters.
addBook(): This method will ask the user to enter ISBN, Book name and Author name and then add the book in
ArrayList and increment the Total Book variable. After successful adding the book, A message box should be displayed containing Book information.
searchBook(): This method takes one parameter which is book name and search the book name in the ArrayList. If search is found then display the Book information otherwise display message that Book not found.
deleteBook(): This method takes one parameter which is book name and delete the book from the ArrayList and then decrement the Total Book variable.
Use JOptionPane for input and output data.
Within main() method, the following message box should be displayed.
If user presses 1 then it should ask the user to add further information
Your assignment must be uploaded/submitted at or before 24th Nov, 2015.
For any query about the assignment, contact at email@example.com
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
tell me error message or send me code?
Here is complete slution
Ye 2 files q hain aik hi kiun nhi hai ??
JDK instal ni ho plz hlp me
video dekhain us mai sb detail di hui hai
aoa ... ya send kesy kerni ha .
i mean i have code and its running fine
how to upload this code on vulms
sana just zip your files and upload.
Your submission must include:
koi btaye ga ak file bejni ha yaa do file . or bejni kasy hain . i mean upload kasy keron.
Yar Koi bataya ga Assignment k last Dialogy box kaisay show hon gay success adding aur delete books walay