Question: Write a CashRegiste class that can be used with the Retailltem class that you wrote in the module4. The cash Register class should simulate
Write a CashRegiste class that can be used with the Retailltem class that you wrote in the module4. The cash Register class should simulate the sale of a retail item. It should have a constructor that accepts a Retilltem objectject as an argument. The constructor should also accept an integer that represents the quantity of item being purchased. In addition, the class should have the following properties and methods: private final double TAX_RATE = 0.06; private double retail; private int quantity; public double getSubtotal () {...} public double getTax () {...} public double getTotal () {...} Here is a sample output:
Step by Step Solution
3.53 Rating (143 Votes )
There are 3 Steps involved in it
Java public class CashRegister private final double TAXRATE 006 Sales tax rate private final RetailI... View full answer
Get step-by-step solutions from verified subject matter experts
