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

  Program to track which user is logged onto which computer

Write a computer program that could be used to track, by lab, which user is logged onto which computer.

  Card generator program by linked list

Address Book-Card Generator Program Using a Linked List. This program will have names and addresses saved in a linked list. In addition, a birthday and anniversary date will be saved with each record.

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

  Reservations system to be horizontal or vertical application

Top Sail Realty Situation: Top Sail Realty is one of the largest time-sharing and rental brokers for vacation cottages. Do you consider the reservations system to be a horizontal or a vertical application? Give reasons for your answer.

  Program to enter answer to a math problem

Write a program which ask student to enter an answer to a math problem. The user must enter two values, one at time, and then ask for answer.

  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 program that inputs number of hours worked

Write a program that inputs the number of hours worked and hoursly pay rat for employesand outputs their total pay.

  Describe issues-web site designers when adding multimedia

Describe some of the issues web site designers must consider when adding multimedia to a web site. Consider issues such as bandwidth, server load, or others you consider to be important. Please provide references.

  Write program to simulate bank transaction

Write a program to simulate a bank transaction. There are two bank accounts: checking and savings. First, ask for the initial balances of the bank accounts.

  Hierarchy of processes

Write a program that creates a hierarchy of processes using the fork() system call.

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

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