Question #122124

A food processing company buys plastic bottles for its

products. A plastic manufacturer sells bottles at a price of

85 cents each bottle, if the company orders 1000 bottles

or more. Otherwise the price per bottle is 90 cents. Write

an algorithm and flowchart which determines how much

the company would pay for both cases.

Expert's answer

Let N be the number of bottles sold and P their price. Then the algorithm may look like this:

if N>=1000:
P=85
else: 
P=90

The flowchart can be like the following one:





LATEST TUTORIALS
APPROVED BY CLIENTS