Create a book class which stores the information

Assignment Help JAVA Programming
Reference no: EM13939968

I need a complete Java code for the following beginner-level assignment. The code does not have to be pretty as long as it works... So here's the assignment:

You run a small library. Ask the user to provide information for several books. The information must include the author, title and publisher of each book. Create a book class which stores the information and implements the following methods:

getAuthor() (returns author's name)

getTitle() (returns the title)

getPublisher() (returns the publisher of the book)

Finally print all the stored information to the user.

Tip 1: Remember the constructor.
Tip 2: You can use an arraylist.

This is how it should look like:

Do you want to input a new book (y/n)?

y

Author:

Jacob Smith

Book title:

Investment Banking

Publisher:

Oxford Press

Do you want to input a new book (y/n)?

y

Author:

Mary Dickins

Book title:

Advanced Econometrics

Publisher:

London Publishing House

Do you want to input a new book (y/n)?

n

The library contains:

2 books

Books:

Jacob Smith, Investment Banking, Oxford Press

Mary Dickins, Advanced Econometrics, London Publishing House

Reference no: EM13939968

Questions Cloud

Using visual studio for pc,inside the visual c++ : Data and Code to be used for this assignment 3 are attached. Using Visual Studio for PC,Inside the Visual C++ option, we want to select a Win32 Console Application.
What type of immune cells are displayed in this plot : In advanced HIV disease the percentage of cells in which population would be reduced? What type of immune cells are displayed in this plot?
Examine your organization and leadership : What is vision in your work environment and how does one foster a shared vision in this kind of environment and what signals (verbal and non verbal) do individuals send to leaders to communicate that they are inspired?
Perspectives on food and beverage appreciation : Search the internet or Australian Hospitality Management journals for a job description for an F&B a manager in a large international hotel in Australia.
Create a book class which stores the information : You run a small library. Ask the user to provide information for several books. The information must include the author, title and publisher of each book.
Develop a program for an auto dealership : You are to develop a program for an auto dealership. This program will keep track of the auto inventory using an array of objects. The dealer has a limit of 100 cars in inventory at one time due to space restrictions. The class used to instantiate..
Characteristics of high and low voltage electrical power : Evaluate, test and report the characteristics of high and low voltage electrical power distribution networks. Identify, select, programme and test suitable power flow techniques and algorithms to solve network power, voltage and current distribution..
Explain how the overhead costs were assigned to each job : How do you think Mrs. Lucky will feel when she receives the bill for the three sets of wedding announcements? Explain how the overhead costs were assigned to each job.
Review of an employment contract : As a current or former employee, you have a "defined idea" of what makes a great workplace? This week''s assignment focuses on a review of an employment contract.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd