/* This file has been produced on Sat Apr 02 2005 at 12:30:25.451 */ import java.util.*; public class Order { private Customer customer; private int number; private Date date; public Customer getCustomer() { return this.customer; } public void setCustomer(Customer customer) { this.customer = customer; } public int getNumber() { return this.number; } public void setNumber(int number) { this.number = number; } public Date getDate() { return this.date; } public void setDate(Date date) { this.date = date; } public double getTotalAmount(boolean calculateVAT) { System.out.println("Method Order.getTotalAmount called"); // Handcraft your method implementation below // Editable-section-begin - getTotalAmount return calculateVAT ? 1.2 : 1; // Editable-section-end } public double getDiscount(double amount,double discountRate) { System.out.println("Method Order.getDiscount called"); // Handcraft your method implementation below // Editable-section-begin - getDiscount if (discountRate > 0.0) return amount - amount * discountRate; else return amount; // Editable-section-end } }