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
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.
|