DebateCamp.java - import java.text.NumberFormat import...

This preview shows page 1 out of 1 page.

import java.text.NumberFormat; import java.util.Locale; public class DebateCamp extends SummerCamp { private final double materialFee; private final boolean groupDiscount; public DebateCamp(String title, String location, double rate, int weeks, double materialFee, String discount) { super(title, location, rate, weeks); this.materialFee = materialFee; groupDiscount = discount.equals("yes"); } public void computeTotalCosts() { totalCost = weeklyRate * numberOfWeeks;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture