Produced calculations p23cs378
import java.text.DecimalFormat; class ProductExcludingTax { private String productName; private int quantity; private double price; private double taxRate; public ProductExcludingTax(String productName, int quantity, double price, double taxRate) { this.productName = productName; this.quantity = quantity; this.price = price; this.taxRate = taxRate; } public double calculateTotalAmount() { double totalAmount = quantity * price; double taxAmount = totalAmount * taxRate; return totalAmount + taxAmount; } public void display() { DecimalFormat df = new DecimalFormat("#.##"); double totalAmount = calculateTotalAmount(); ...