198k views
6 votes
ERICUS Company sells Ghacem cement at 30.0 Ghana Cedis per bag. The company however gives discount of 15% for customers that buy 100 or more bags, and 0% for customers that buy less than 100 bags. Write a pseudocode and present a flowchart that will display the discount percentage when the quantity of bags purchased is entered

1 Answer

5 votes

Answer:

The pseudocode is as follows:

Input Qty

Discount = 0%

If Qty>= 100:

Discount = 15%

Print Discount

Step-by-step explanation:

This gets the quantity of bags

Input Qty

This initializes the discount percentage to 0%

Discount = 0%

This checks if the quantity is greater than or equal to 100.

If Qty>= 100:

If true, the discount percentage is set to 15%

Discount = 15%

This prints the calculated discount percentage

Print Discount

See attachment for flowchart

ERICUS Company sells Ghacem cement at 30.0 Ghana Cedis per bag. The company however-example-1
User Swxxii
by
4.5k points