1-public double getTotalCost();
A method that returns the total cost of items without tax.The number has to be rounded to the nearest two decimal points.... @return The total cost without tax
2-public double getTotalTax();
A method that returns the total tax. The number has to be rounded to the nearest two decimal points..@return The total taxes of items
3-public void addItem(Fruit fruit);
Add a fruit to the cashier for checkout...@param fruit The fruit object to add
4-public void clear();
Clear all fruits from this cashier
5-public int getNumberOfItems();
Get the number of items in the current cashier box .. @return the total number of items in this cashier box
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-59443.pdf
Comments
Leave a comment