Computer Science, asked by kiara373, 2 months ago

Clearance Sale

Scenario :
As part of the boxing day celebration, Thomas Households Ltd has decided to go for a clearance sale for 3 days. The price of the product will be reduced by 7% on each day.

Requirement :

1. User must be able to input the name of the product, price of the product, whether the product is on sale or not, number of that product sold on day 1, day2 and day3.

2. Calculate the sale price based on the given condition.

Condition 1: Product is on sale

Condition

Example

7% discount on Day 1

if a product price is Rs.10000 , then it will cost Rs.9300

7% discount on Day 2 on discounted price

Rs.8649 which is 7% less from Rs.9300

7% discount on Day 3 on discounted price

Rs. 8043 which is 7% less from Rs.8649



Condition 2: Product is NOT on sale

Calculate the total day sales of the product on day 1, day 2 and day 3.



Sample input 1:

Enter the name of the product :
Samsung 215 L

Enter the price of the product :
10000

Is the product on SALE (yes/no) :

yes

Enter number of product sold in day 1

2

Enter number of product sold in day 2

3

Enter number of product sold in day 3

3


Sample output 1:

Samsung 215 L
Day 1 sales total : 18600
Day 2 sales total : 25947
Day 3 sales total : 24130

Sample input 2:

Enter the name of the product :
Samsung 215 L

Enter the price of the product :
10000

Is the product on SALE (yes/no) :

no

Enter number of product sold in day 1

2

Enter number of product sold in day 2

3

Enter number of product sold in day 3

3


Sample output 2:

Samsung 215 L
Day 1 sales total : 20000
Day 2 sales total : 30000
Day 3 sales total : 30000

Answers

Answered by anuraghembrom05
0

Answer:

User must be able to input the name of the product, ... if a product price is Rs.10000 , then it will cost Rs.9300 ... Ltd has decided to go for a clearance sale for 3 days.

Similar questions
Math, 2 months ago