Obtain sales amount. If sales amount is > 5000 then give a discount of 10%. Otherwise give discount as 0%. Calculate amount payable. i. Write an algorithm for above problem. ii. Draw a flowchart for the same.
Answers
Answered by
0
9 get two inputs quantity and price from users using scanf
calculate amount by using the expression amount is equal to quantity
check whether amount is greater than 5000 using if
if amount is greater than 5000 then calculate discount and amount using the expressions a discount is equal to amount into 0.05 and amount is equal to amount
print amount using print
Similar questions
India Languages,
1 day ago
Math,
1 day ago
Math,
1 day ago
Math,
8 months ago
Chemistry,
8 months ago