Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

reuploaded because the previous question I posted didn't get solved correctly I've included the error message received below. please help guys!! Hello, I need this

reuploaded because the previous question I posted didn't get solved correctly I've included the error message received below. please help guys!!

Hello, I need this question completed in Java and the code to be tested before submission because Ive had multiple errors. Ive also included photos referring to what mistakes Ive received. PS.this question is a little bit different than previous questions posted on the check, so the same answer would not work. Thank you for all your hard work.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Given main0 and a base Book class, define a derived class called Encyc lopedia with member methods to get and set private fields of the following types: - String to store the edition - int to store the number of pages With the cerived Encyc lopedia class, define a printinfo0 method that overrides the Book class' printinfo0) method by printing the title, author, publisher, publication date, edition, and number of pages. Ex. If the input is: The Hobbit J. R, R. Tolkien George Allen \& Unwin 21 September 1937 The Illustrated Encyclopedia of the Universe Ian Ridoath Watson-Guptill 2001 2nd 384 the output is: Book Information: Book Title: The Hobbit. Author: U. F. R. Tolkien Publisher: Gedrge Allen o Wowin Publication Date: 21 September 1937 Book Intormation: Book Title: The Illustrated Encyolopedia of the Jniverse Authar: Ian Ridpath Publisher: Datson-Guptill Publication Date: 2001 Edition: 2nd Number of Pages: 384 Note: Indentations use 3 spaces. File is marked as read only Current tie: Bookiniormation.java Current file: Encyclopedia.java Load default template... 1:Compare output Output is nearly correct, but whitespace differs. See highlights below. Special character legend The Hobbit J. R. R. Tolkien George Allen \& Unwin 21 September 1937 The Illustrated Encyclopedia of the Universe Ian Ridpath Watson-Guptill 2001 2nd 384 Book Information: Book Title: The Hobbit Author: J. R. R. Tolkien Publisher: George Allen \& Unwin Publication Date: 21 September 1937 Your output Book Information: Book Title: The Illustrated Encyclopedia of the Universe Author: Ian Ridpath Publisher: Watson-Guptill Publication Date: 2001 Edition: 2nd Number of Pages: 384 Book Information: Book Title: The Hobbit Author: J. R. R. Tolkien Publisher: George Allen \& Unwin Publication Date: 21 September 1937 Book Information: Book Title: The Illustrated Encyclopedia of the Universe Author: Ian Ridpath Publisher: Watson-Guptill Publication Date: 2001 Edition: 2nd Number of Pages: 384 Failed to compile

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

define the term outplacement

Answered: 1 week ago

Question

describe the services that an outplacement consultancy may provide.

Answered: 1 week ago