The program output might look something like this (using the PromotionManager class):
The promotions have been added:
The promotions have been added:
100, Big sale, 10.00
100, Big sale, 10.00
101, Sampling, 15.00
101, Sampling, 15.00
102, Flash Sale, 20.00
102, Flash Sale, 20.00
103, Refund, 25.00
103, Refund, 25.00
104, Loyal, 30.50
104, Loyal, 30.50
Add a new promotion:
Add a new promotion:
Enter id:106
Enter id:106
Enter name:Opening
Enter name:Opening
Enter discount percentage:9.9
Enter discount percentage:40
1.Test getMinDiscountPercentage
1.Test getMinDiscountPercentage
2.Test sumDiscount PercentageByValue
2.Test sumDiscount PercentageByValue
Enter TC(1/2):1
Enter TC(1/2):2
OUTPUT:9.90
Enter discount percentage:25
OUTPUT:
6 of 7
Paper No: 1
95.50
+ 93%
Close