Write a program that considers a class that keeps track of the sales of an item. An object of this class will have the following attributes:Number soldTotal salesTotal discountsCost per itemBulk quantityBulk discount percentageAnd, the following methods:registerSale(n) records the sale of n items. If n is larger than the bulk quantity, the cost per item will be reduced by the bulk discount.displaySales displays the number sold, the total sales, and total discountDesign and implement the class in Java™.Use the appropriate public or private modifiers for the methods and attributes.
Programming
[Solved] SOLUTION: program that considers a class that keeps track of the sales of an item
$25
File Name: SOLUTION:_program_that_considers_a_class_that_keeps_track_of_the_sales_of_an_item.zip
File Size: 763.02 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.