Assignment 2
Assignment 2
Question # 1:
Write an algorithm and draw a flow chart to print a receipt from a medical store by entering
medicine names and prices from the cashier. Add up to 5 medicines. Apply a 5% discount on
the final total and display the receipt in the given format.
ABC Store
01-11-2024
Receipt ID: 123456
Name of Medicine 1………………………………. 400
Name of Medicine 2…….………………………... 200
Name of Medicine 3………………………………. 400
Name of Medicine 4……………………………….. 200
Name of Medicine 4……………………………….. 350
Total Amount...…………………………………….. 1550
Discount …………………….……… 5%
Total........................………………………………1472.5
Application of information and communication technology, V9, Assignment 2
Question # 2:
Question # 3:
Question # 4:
Quantity Discount
10–19 20%
20–49 30%
50–99 40%
100 or more 50%
Apply the discount logic based on the quantity entered by the user.
Analyze the quantity entered and:
A. If the quantity is between 1 and 9, no discount is applied.
B. If the quantity is between 10 and 19, a 20% discount is applied.
C. If the quantity is between 20 and 49, a 30% discount is applied.
D. If the quantity is between 50 and 99, a 40% discount is applied.
E. If the quantity is 100 or more, a 50% discount is applied.
Calculate the total cost after applying the appropriate discount.
Identify the final price the customer will need to pay after the discount is applied.
Solve the problem and display the original price, the discount amount, and the final price.