MemberCustomer.java - import java.text.DecimalFormat public...

This preview shows page 1 out of 1 page.

import java.text.DecimalFormat; public class MemberCustomer extends Customer{ int i; DecimalFormat format=new DecimalFormat("##0.00"); private int pointsCollected; public MemberCustomer(String fName, String lName, double amount, int year, int month, int date, int points){ super(fName,lName, amount, year,month, date); pointsCollected= points; } public void computePaymentAmount(){ if(pointsCollected>100){ paymentAmount=0.8*purchasedAmount; }else{ paymentAmount=0.9*purchasedAmount;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture