![]() You need to take a screenshot of your Blue) terminal window, as shown below : īook book1 new Book ("Author", "Title", 500) book1.addChName("Ch1", 12) book1.addChName("Ch2", 20) book1.addChName("Ch3", 30) book1.listChapter(2) chapter name is: Ch3 number of pages is 30 book1.removeCh("Ch2") chapter name: Ch2 that has number of pages20 has been deleted book1. Test the methods you created by creating an object from the book class and call all the methods you built in d section above. Print a message that states a given chapter (chapter name and number of pages) is deleted or no chapter found with the given name (as shown in the picture below) e. in the course of them is this Bluej Exercise Solutions Chapter 3 that can be your partner. Printing the details of the chapter (chapter's name and number of pages) based on a given index of the array, Removing a specific chapter based on the given name of chapter, using the iterator object from Iterator class. Bluej Exercise Solutions Chapter 3 and numerous books collections from fictions to scientific research in any way. Create methods in the book class that do the following: Adding name of the chapter and number of pages for that chapter. ![]() You do this by defining and creating an array of objects of type Chapters class. In the book class, you need to add one more attribute to the objects of book class to store the details of the book's chapters. Build the constructor for objects of the Chapters class. ![]() Those objects are then altered by invoking the same methods we used in the previous exercises. The Chapters class hold the data of each chapter object: name of the chapter and number of pages of each chapter. Exercise 1.10, 1.11, 1.12 and 1.13: N/A Exercise 1.14: The picture class’s draw method works by first creating 2 square, 1 triangle, and 1 circle objects. = Lab Assignment 1 1/2 111% + ASSIGNMENT PROBLEM STATEMENT Lab Assignment-1 Q1: In the book exercise blue) project, in chapter 2 do the following: a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |