subject

Write a class called book that contains instance data for the title, author, publisher, price, 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, multi-line description of the book. write another class called bookshelf, which has name and array of book objects. bookself capacity is maximum of five books. includes method for bookself that adds, removes, isfull( returns boolean), isempty(returns boolean) and tostring method that returns all information about the books in the bookself. create a driver class called testbookshelf, whose main method instantiates five book objects, instantiates one bookshelf, updates the books, and add or remove the books to the bookshelf, isduplicate(book b). make sure to print information on the bookshelf every time you update the books or the bookshelf. add as many api that you think is good to have for the bookshelf class.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 10:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
You know the right answer?
Write a class called book that contains instance data for the title, author, publisher, price, and c...
Questions