Write an algorithm and design a flowchart for calculating the discount as per the data
mentioned in the following problem:
A company XYZ Ltd sells different products.
In order to increase its sales, it offers discounts to its customers.
Different discounts are offered on the Sales price to customers as per the type of the products,
Discount policy as per the products is given below:
Kitchenware - 12% Discount
Electronics - 5% Discount
Home Decor - 20% Discount
Discount is not applicable on other types of products.
Answers
Answer:
Here is how to write an algorithm for the problem
Explanation:
Given: If the price is less than $1,000, the discount is 5%; otherwise, the discount is 10%.
To determine: determine the item's net price and discount
Solution:
START
ENTER PRICE - INPUT PRICE = P
Price of a DECISION BOX is P 1000.
Processing Box Discount D = (5P/100) is true.
A = P - D for the Processing Box Net Amount.
No, Processing Box Discount D is equal to 10p per 100.
A = P - D for the Processing Box Net Amount.
OUTPUT: Net Amount A and Discount D
END
By using the process of making a novel recipe as an example, it can be understood. When following a new recipe, one must read the directions and carry out each step in the correct order. The end consequence is that the new meal is cooked to perfection. You employ algorithms every time you use a phone, computer, laptop, or calculator. Similar to this, algorithms assist programmers in carrying out tasks to produce desired results.
The designed algorithm is language-independent, meaning that it consists only of simple instructions that can be used to implement it in any language and still produce the desired results.
See more:
https://brainly.in/question/36902547
#SPJ1