We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 01 Fall 2015 CS506- Web Design and Development Total Marks: 20 Due Date: 24/11/2015

Assignment No. 01

 Fall 2015
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:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is fully or partially copied from (other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.
  • The assignment is not submitted in .java format.

 

Uploading instructions

Your submission must include:

 

  1. All the source code (.java files) and other necessary files to compile and run your program.
  2. You have to make one java file and Upload it on VULMS.

 

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)

Objective

The objective of this assignment is to

  • Give you some practice exercise of Classes and Objects. And how to compile and run java programs.
  • Develop GUI (Graphical User Interface) in java
  • Understand the concept of Collections in java

 

 

Problem Statement:                                                        

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:

  • ISBN
  • Book Name
  • Author Name
  • Total Books

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:

  • Default constructor
  • Parameterized constructor
  • addbook () 
  • searchBook ()
  • deleteBook ()

 

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.                                                                             

Detailed Description:

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.

 

Sample Output:

Within main() method, the following message box should be displayed.

 

If user presses 1 then it should ask the user to add further information

Deadline

Your assignment must be uploaded/submitted at or before 24th Nov, 2015.

 

 

For any query about the assignment, contact at cs506@vu.edu.pk

GOOD LUCK


+ 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)


Views: 17029

Attachments:

Replies to This Discussion

Maliaka eman apny assignment kr li hy apka mailing id kia hy??

meri mailing id ka to is mein koi kam hi nahi ..  

yes Alhamdulillah, i hv done.

AOA Maliqa plz help karian assi net beans main karne ha kia yah kis software main karne ha or ap apna code dekha sakhte hain kindly

Wa'alikuas'salam,      

     yes, netbean avail hai to usi mein kr lein zyada better hai. or correct code is shared by Mr.Tariq malik

http://vustudents.ning.com/forum/topics/assignment-no-01-fall-2015-...

shazia kindly see ths video.

hope u will be understand.

http://www.ytpak.com/watch?v=-GXrXe53ZsY

مَلیکا ایمان

delete book krne k baad 1 message show hora hai jisme book was not founfd and uski detail aa rahi hai ..

then uske baad ata hai book delete sucessfully..

apne isko kese thek kia?

book was not found k bad error??

kindly let me check error u got..  

thank u thank u thek hogaya  :)

asal me return statement di hui thi to wo repeat ho rahi thi bas usko remove kia to bilkul proper working krne lag gaya

nahi jab book delete krte hn to 1 message show ho raha book was not found ka aur book info thi phir uske baad deleted sucesssfully ka option aa raha tha .. extra statement put ki hui hai is code me.

abh thek hogaya hai 

thankss

dear share ur code please....

Tariq sir wala same code hai .. just id put and thori editing

Stay Blessed..

if u have submitted your assign then would u help others? Coz,i've to go emergency..however, time is too short. 

will u do??

مَلیکا ایمان

again error agay jab search book kr rahe program terminate ho raha hai .. us line ko remove krne k baad

aur jab delete krte hn phele book serach k message show krta hai then delete sucessfully ka 

RSS

Latest Activity

Saqib replied to +M.Tariq Malik's discussion CS508 Assignment 01 Fall 2020 Solution / Discussion in the group CS508 Modern Programming Languages
3 hours ago
Saqib joined +M.Tariq Malik's group
3 hours ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS603 Assignment 01 Fall 2020 Solution / Discussion Due Date: 26-11-2020 in the group CS603 Software Architecture and Design
3 hours ago
Musawar Ahmed joined +M.Tariq Malik's group
3 hours ago
Pooja kumari replied to +M.Tariq Malik's discussion ENG501 Online Quiz No 01 Fall 2020 Solution / Discussion in the group ENG501 History of English Language
3 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked ++!!Zuni Khan(Am Cyco)'s discussion Kitna Mushkil Hai Aziyat Ye Gawara Karna
4 hours ago
UZMA replied to +M.Tariq Malik's discussion Don't Worry About Your Assignments, GDBs & Online Quizzes
5 hours ago
Profile IconFatima and MUHAMMAD NAJEEB joined +M.Tariq Malik's group
5 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT601 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group MGT601 SME Management
5 hours ago
+ " Şinger " and + "ραℓωαѕнα" are now friends
5 hours ago
+ " Şinger " replied to Pooja kumari's discussion quiz discussion
5 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion EDU654 Assignment 01 Fall 2020 Solution / Discussion in the group EDU654 Addressing problems of learning through technology and pedagogy
6 hours ago

Looking For Something? Search Here

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.