Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will be creating both a driver class/main method and an object class for this assignment. Your object class should be named Book.java . write

You will be creating both a driver class/main method and an object class for this assignment. Your object class should be named Book.java.

write a class called book that contains instance data for the title, author, publisher, and copyright date. Defiine the book constructor to accept and initialize this data. Include a tostring method that returns a nicley formatted multi line description of the book. create a driver class called bookshelf whos main method instantiates and updates several book objects.

Within the driver class, please complete the following tasks:

Instantiate 3 Book objects

The first is the textbook (Java Software Solutions (2015) Lewis and Loftus)

The second two books should be two of your favorite books

Change the publication date of the textbook to 2017 and print the updated information for that book with a header (ex. Updated book information: )

Write a statement to the screen that includes the names and authors (only) of the two books you included (ex. Two of my favorite books are...).

the Three book objects should be printed by using the object name only using the given format (MacBeth (1606) by William Shakespeare).

Include clear comments throughout the program that explain the variables and what functionality the various lines/small sections of code are completing as related to the execution of the program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

List the major functions performed by the DBA

Answered: 1 week ago

Question

Define and discuss racial and ethnic stereotypes across cultures

Answered: 1 week ago