View the step-by-step solution to:

Question

Hi,

For school im struggling with a particular exercise.

In attachment(picture) I send the details

of the exercise with solution.

Is it possible to explain me the code, step per step?

Thank you very much!

Yannick

Solution(3).jpgSolution(2).jpgSolution(1).jpg

Solution(1).jpg

Solution(2).jpg

public void setDiscount (double k)
* Write a description of class Member here.
* Write a description of the Reservation class here.
discount = k;
@author (your name)
@author (your name)
* @version (a version number or a date)
* @version (a version number or a date)
public String getName ()
public class Member
public class Reservation
return name;
private String name;
}
private member member;
private String count;
private boat boat;
private double discount;
public String getTel ()
private double number;
public Member (String name, String telephone, double discount Percentage)
return count;
public reservation (Member ], Boat b, double au)
this.name = name;
member = 1;
count = telephone;
boat = b;
discount = discount Percentage;
public double getDiscount ()
number of Hours = au;
return discount;
public void setphone number (String t)
public cover getMember (
count = t;
return member;

Solution(3).jpg

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Java Programming tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors