Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Looking for solution case problem # 2 (Java programming 8th edition). Below is t

ID: 3672256 • Letter: L

Question

Looking for solution case problem # 2 (Java programming 8th edition). Below is the question and original question

2. a. In Chapter 8, you created a Rental class for Sammy ’ s Seashore Supplies.Now extend the class to create a LessonWithRental class. In the extendedclass, include a new Boolean field that indicates whether a lesson is requiredor optional for the type of equipment rented. Also include a final array thatcontains String s representing the names of the instructors for each of theeight equipment types, and store names that you choose in the array. Create a LessonWithRental constructor that requires arguments for an event number,minutes for the rental, and an integer equipment type. Pass the first twoparameters to the Rental constructor, and assign the last parameter to theequipment type. For the first two equipment types (jet ski and pontoon boat),set the Boolean lesson required field to true; otherwise, set it to false. Alsoinclude a getInstructor() method that builds and returns a String includingthe String for the equipment type, a message that indicates whether a lesson isrequired, and the instructor ’ s name. Save the file as LessonWithRental.java

Explanation / Answer

Hi, Can you post Rental java calss as your question is dependent on Rental.java

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote