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)
AOA Tehmina kase hain ap plz ap apna code dekha dian ak dafa main be netbeans main bana lun g plz help me
plz Tehmina mare help karian thore email id pa he send kar dian plz firstname.lastname@example.org pa plzzzzzzzzz
100% working code just little change when u submitting......
* General ap ka code
adding or deleting book successfully k msgs show nhi kr raha.
kn c file submit krani hai ??
AOA kase ha General mujhe cs506 ke assignment main help chaye plz ap mare help karian g
See handout page 31-37 for proper implementation of java IDE. After read and understand these instructions carefully and implement java IDE step by step. After that, If u required more help, i m available here.
ap mare help karian g
dear apko kia help chahiye.kindly point out karein.
coding problem or jdk installment issue??
AOA kase hain ap mujhe coding main help chay ap na assi ke ha to apna code dekha sakhte hain kindly or coding netbean main karne ha kia
Alhamdulillah fine. Hope allz well at your end too.
yes, netbean avail hai to usi mein kr lein zyada better hai.
or correct code is here by Mr.Tariq Malik.
Are you using Private class in BookMgtSys.java? If possible, show me code