Write a program in java form that considers a class that


Write a program in Java form that considers a class that keeps track of the sales of an item. An object of this class will have the following attributes:

-Number Sold

-Total Sales

-Total discounts

-Cost per Item

-Bulk Quantity

-Bulk discount percentage And, the following methods: -registerSale(n) records the sale of n items.

If n is larger than the bulk quantity.

Cost per item will be reduced by the bulk discount - displaySales displays the number sold, total sales, and total discount Design and implement class in java Use appropriate public or private modifiers Write java statements that test the class Include proper documentation in the source code

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a program in java form that considers a class that
Reference No:- TGS02381695

Now Priced at $15 (50% Discount)

Recommended (93%)

Rated (4.5/5)