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://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-59443.pdf
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment