Design an application that instantiates a book and a text


Complete the following tasks:

a. Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include methods to set and get the values for each data field.

b. Design an application that declares two Book objects and sets and displays their values.

c. Design an application that declares an array of 10 Books. Prompt the user for data for each of the Books, and then display all the values.

d. Design a class named Text Book that is a child class of Book. Include a new data field for the grade level of the book. Override the Book class display method so that you accommodate the new grade-level field.

e. Design an application that instantiates a Book and a Text Book and demonstrates all the methods of each class.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Design an application that instantiates a book and a text
Reference No:- TGS01474346

Expected delivery within 24 Hours