C Practical 2
C Practical 2
- Problem Statement:Develop a program that accepts a sales amount; if the sales amount is
more than 5000, then the discount is 12% of the sales amount; otherwise, it is 7%. Display the
total discount and the amount to be paid after the discount.
- Objective: Calculate and display the discount and the final amount to be paid based on the
sales amount.
- Algorithm:
1. Input the sales amount.
2. If the sales amount is more than 5000, calculate a 12% discount, otherwise calculate a 7%
discount.
3. Calculate the amount to be paid after applying the discount.
4. Display the total discount and the amount to be paid.