netbeans program

netbeans program

Hi. could someone build this for me in netbeans please :)

You are required to create a basic library management system for use with books. A Graphical User Interface (GUI) is not required, i.e. your program should operate entirely at the command?line.

The set of all Books contained in the library (i.e. the contents of the library) should be held in a collection/list/array of objects of this type. Bonus marks will be given for ensuring that an item can only be in the library once. Your library should be able to contain any number of items. Your program should provide a menu of options to work with the library, including: 1) Adding a new item to the library 2) Viewing all stock in the library 3) Lending an item 4) Returning an item 5) Exiting the program

For any input outside of these menu options, an error message should be displayed and the menu should then be re?displayed. The program should not terminate until the user selects the menu option to exit the program. All menu options other than option 5 should provide an option to return to the main menu. If option 5 is selected, the user should be asked to confirm that they wish to exit the program before terminating.

Menu functionality:

1) Adding a new item to the library: When selected, the program should prompt for each of the required pieces of information about the new item, and create an object based on this information. This object should then be added to the library and should be available for lending and returning. Its information should also appear as part of the list of all stock in the library (option 2)

2) Viewing all stock in the library: When selected, the program should print out the details of every item in the library. It should also print the number currently in stock (i.e. available for lending) at that time.

3) Lending an item: When selected, the program should ask what is being borrowed. It should then increase the number on loan of that item. If the item does not exist in the library, it should ask if the user would like to enter the title again and if the user says yes, it should start the lending process again. If the user says no, it should go back to the main menu.

4) Returning an item: When selected, the program should ask what is being returned. It should then decrease the number on loan of that item. If the item does not exist in the library or the number on loan is already at 0, it should ask if the user would like to enter the title again and if the user says yes, it should start the returning process again. If the user says no, it should go back to the main menu.

5) Exiting the program: When selected, the program should display a sign?off message and terminate.

Item specifications: Book A Book should have: ? Title ? Author ? Whether it's part of a series (E.G. Lord of the Rings, Famous Five, Jack Ryan novels etc) [Default: false] ? Series name [Default: "None"] ? ISBN (ID string for books) ? Genre ? Quantity (the total number of copies available. The number of copies in stock can be found by subtracting the number on loan from this value) ? Number on loan

All types should include an equals method that takes a parameter of an Object and returns true if the parameter contains the same information as the current object (i.e. if they are equal) and false otherwise.

View Answers

Ads









Related Tutorials/Questions & Answers:
netbeans program
netbeans program  Hi. could someone build this for me in netbeans... with books. A Graphical User Interface (GUI) is not required, i.e. your program... number of items. Your program should provide a menu of options to work
RMI Program in netbeans
RMI Program in netbeans  pls give me an idea for how to run RMI program in netbeans with detailed example
Advertisements
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?  how to develop, compile & run a rmi program in netbeans 6.9.1 ide? will you please give me a step by step (practical) explaination? Thanks in advance
NetBeans
NetBeans  Hi, I am Kundan I have made a project on NetBeans. And now I want to know that how can i run my project without NetBeans IDE,on other PC. Please help me it's important
NetBeans
NetBeans  Hi, I am Kundan I have made a project on NetBeans. And now I want to know that how can i run my project without NetBeans IDE,on other PC. Please help me it's important
netbeans
netbeans  In netbeans, there are choices of books with their price. you check the book you wanted then click the purchase.the output should be the book with the price then you will get the total price of the book you purchase.how
netbeans
netbeans  guysss m nt able to opemn ma netbeans ide.. no error msg s coming... wn i installed yesterday one msg came stating about some run time error... sm one plzzzzzz hlp me
what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.
what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.  import java.io.*; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.List
netbeans library
netbeans library  Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work... the program A Book should have: ? Title ? Author ? Whether it's part of a series (E.G.
netbeans library
netbeans library  Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work... the program A Book should have: Title Author Whether it's part of a series (E.G.
RMI and netbeans
RMI and netbeans  how to use Rmi in netbeans? i want to connect to a server machine which is holding my application and need to identify the systems connected in LAN with it and get the IP address from it i wnt to use netbeans
java netbeans
java netbeans  i am making project in core java using Netbeans. Regarding my project i want to know that How to fetch the data from ms-access... using netbeans
java netbeans
java netbeans  i am making project in core java using Netbeans. Regarding my project i want to know that How to fetch the data from ms-access... using netbeans
Artifacts of netbeans
List of Artifacts of netbeans maven depenency
webservice in Netbeans
.. im using netbeans version 6.9.1 .. pls help me out... regards-- Harish Kumar
EJB with NetBeans
EJB with NetBeans  I am very new in Ejb and with very few knowledge about it. I have download NetBeans (7.01) and GlassFish (3.01). But, as I have no idea about Ejb, I am not getting how to run the code which includes a simple
program
program  write a javascript program to create a application form with validation
program
program  write a html program in show table and this word in box
program
program  write a program different between to dates in terms of days in java
program
program  write a program reversee a string. input-hi this is roseindia output-roseindia is this hi
program
program  develop a servlet to insert the data in the database from our program in the table stored in the database
program
program  WAP a java program to form 1/2+3/4+5/6+7/8 series
program
program  write a java program to input a no. and print wheather the no. is a special no or not. (special no. are those no whose factorial of the sum of digit of the no is same as the original
program
program  how to improve programming skills plss tell some tips..i am understanding concepts but unable to write program so,pls give some guideness plsss
Program
Program  a program to prove that default constructor of super class is available to subclass by default. Define a parameterize constructor for super class to store name = ‚??Tommy‚?? age=‚??23‚?? and call this constructor
Program
Program  a program to create two classes Commercial and Domestic. Override the method calculatebill() of Commercial class(Rs.8 per unit) into Domestic class(Rs 6 per unit) to compute electricity bill for both classes
program
program  no i want a program that shows how merge sort algorithm works in graphical representations like numbers are taken in circles and computation... in rectangles or circles wat ever it may be. the theme of program is to show algorithm
program
program  Write a JSP Program, which displays a web page containing the name of the Courses, Courses being offered currently, number of students enrolled in each course, new courses to be offered, eligibility criteria for taking
program
program  i want a progra in java to print a sentence in alphabetic order, taking the input from the user.the program should writen without using the array for example : if input= this is a cat then output sould = a cat
program
program  Write a JSP Program, which displays a web page containing two web links one for your profiling and other for the schedule of theory of practical classes of your Batch. When one click on link for getting your profile
program
program  Write a program to print details of a week for a particular day using array of objects Integer and String. OUTPUT: First Day of Week is Monday Second Day of Week is Tuesday Third Day of Week is Wednesday Forth Day
Netbeans GUI Ribbon
Netbeans GUI Ribbon  how to create ribbon task in java GUI using netbeans
jdbc and swing problem in netbeans
jdbc and swing problem in netbeans  i reteived the table from database in a jdbc program. next i want to do is place the table as it is in a jpanel.. i am using netbeans IDE can u tel me how to do that one?? urgent
jdbc and swing problem in netbeans
jdbc and swing problem in netbeans  i reteived the table from database in a jdbc program. next i want to do is place the table as it is in a jpanel.. i am using netbeans IDE can u tel me how to do that one?? urgent
JNDI names in netbeans
JNDI names in netbeans  how to create a JNDI names in netbeans
Ajax program
Ajax program  any simple program with execution steps using netbeans 6.9
Version of netbeans>cvslib dependency
Version of netbeans>nbantext dependency
connect netbeans with oracle
connect netbeans with oracle  how to connect netbeans with oracle   Hi Friend, Please visit the following link: http://www.roseindia.net/jsf/visual-jsf.shtml Here you will find the steps to connect netbeans
how to install jfreechart in netbeans.
how to install jfreechart in netbeans.  I have successfully installed jfreechart in eclipse IDE.but I am unable to install the same in netbeansIDE... procedure to install it in netbeans 6.7.1 Please reply asap.Its urgent
netbeans with mysql and tomcat
netbeans with mysql and tomcat  Hi. I have to run a JSP or JAVA file in netbeans with mysql database and tomcat server 7.0. But while the page loading itself it say error. ClassNotFoundException: com.mysql.jdbc.Driver. How
jsp netbeans javascript
jsp netbeans javascript  hi to all; I'm debutante in JSP netbeans, please help me to realize my application I have some difficulties: 1 - page... nothing is changed.) 2-how iserer date in oracle 10g database via JSP netbeans
buttons in netbeans,java
buttons in netbeans,java  respected sir, i would like to known how to make coding on a button while working on netbeans, so that a new window will open after clicking on that button? thank you   import java.awt.
NetBeans IDE
NetBeans IDE         The NetBeans IDE, product of Sun Microsystems, is a free, open-source.... NetBeans IDE supports developers providing all the tools needed to create all
java swing in netbeans
java swing in netbeans  how can create sub menu in java swing using netbeans?   Hi Friend, Try the following code: import javax.swing.*; public class CreateSubmenu { public static void main(final String args
Linking JMenu Item with a JPane in Netbeans
Linking JMenu Item with a JPane in Netbeans  How do you link a Jpane window to a JMenu Item in Java Netbeans
java login form using netbeans
java login form using netbeans  how to connect an access database to a login form using netbeans
JSTL in Netbeans 6.9.1
JSTL in Netbeans 6.9.1  I am seeking your help in solving problem I am facing. The problem has been described below: I am using JSTL1.1 core tag... is working fine. I am using Netbeans 6.9.1 Id with Glassfish server 3 for my
SQL STATEMENT in JDBC in NETBEANS IDE
SQL STATEMENT in JDBC in NETBEANS IDE  Iam using NETBEANS IDE. Iam developing a bank application. Using JDBC in SERVLETS For the withdraw function, "bal" and "ano" are user inputs when i wrote like, st.executeQuery("UPDATE
java,jdbc,netbeans
java,jdbc,netbeans  can you tell me the program which read multiple dbf files and then insert those dbf files data in msaccess automatically

Ads