Design and implement class instance data for title of book

Assignment Help Programming Languages
Reference no: EM1362689

Design and implement a class called Book that contains instance data for the title, author, publisher, and copyright date. Define the Book constructor to accept and initialize this data. Include setter and getter methods for all instance data. Include a toString method that returns a nicely formatted, multiline description of the book. Create a driver class called BookShelf, whose main method instantiates and updates several Book objects.

Note: the program must have:

- Two classes Book and BookShelf.
- Accept the data from the user using Scanner Class in the Main class (BookShelf).
- Passing data to constructor.
- Display the following output:

Please enter the following information:

Enter Book Title: Object-Oriented Programming with Java An Introduction to.
Enter author: CWU. Thomas
Enter publisher:McGraw-Hill
Enter Copyright Date: 6002
**********************************************************************
Book Information:
Title: An Introduction to Object-Oriented Programming with Java.
author: C. Thomas WU
publisher: McGraw-Hill
Copyright Date: 2006

Reference no: EM1362689

Questions Cloud

Determine the gain from merger : Velcro Saddles is planning the acquisition of Pogo Ski Sticks, Corporation. The values of the two companies as separate entities are $20 million and $10 million, respectively.
Identify untapped customer needs through open innovation : How might businesses use the Internet to identify untapped customer needs through open innovation? What do you see as the major advantages and disadvantages of the open innovation approach?
Overhead spending, efficiency and volume variance : Overhead is applied on the basis of direct labor hours. Three direct labor hours are required for each product unit. Planned production for the period was set at 8,000 units. Manufacturing overhead for the period is budgeted at $204,000, of which ..
Calculate value of beta : Alpha Corporation and Beta Corporation are identical in every way except their capital structures. Alpha Company, an all-equity firm, has 5,000 shares of stock outstanding, currently worth $20 per share.
Design and implement class instance data for title of book : Design and implement a class called Book that contains instance data for the title, author, publisher, and copyright date. Define the Book constructor to accept and initialize this data.
Motivating people to exercise : Prepare a working bibliography. This short paper will require a list of at least five references using APA citation style. Some of these sources will need to come from academic or professional journals.
Explain elements of conflict resolution and peacemaking : Explain elements of conflict resolution and peacemaking and Format your paper consistent with APA guidelines.
Active versus passive investors : You are preparing taxes for Tim, a business investor, and must calculate his adjusted gross income. Tim invested $10,000 in a business (only slightly less than the other investors) but is claiming a loss of $24,000.
Illustrate which offers the higher expected return : Illustrate which offers the higher expected return. If you expect the rate of inflation to be 3% over the next year, which is the better investment.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a trigger for total percentage of all appointments

Write a trigger on Works department to ensure the following requirement; the total percentage of all appointments for an employee must be fewer than 100%.

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Develop an encryption program

Your employer, SGA (Secretive government Agency) wants you to develop an encryption program. After doing some research you have two candidate algorithms.

  Create test application that creates objects of type book

Create a test application that creates several objects of type book class and adds each Book to an ArrayList. Your test application should then do the following.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Explaining risk in fixed-price contracts

It is recognized that fixed-price contracts offer obvious advantages to buyer organizations because they transfer almost all of the risk to the contractor.

  Create method to calculate value of product purchase

In addition, the receipt should display the value of the entire purchases. Create a method to calculate the value of the product purchases.

  Designing class to denote person-s height

Design a class, PersonHeight, to denote the person's height. Our class will include the following members.

  Write a perl program

Write perl program which will run on my system and will start another perl program on another linux system. The main program should wait for linux perl program to complete its work and send the result to my main perl program.

  Identify all the pure-strategy nash equilibria of game

Identify all of the pure-strategy Nash Equilibria of this game. Identify at least one mixed-strategy Nash Equilibrium, and show that it is a Nash Equilibrium.

  Write program-compute average using floating-point numbers

Write a program that will accept as input between 2 and 25 numbers and then calculate the average of the numbers. Make sure you use floating-point numbers in case the average is not a whole number.

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