You are on page 1of 1

Input Processing Output

shortbread sold total cookie sales shortbread contribution


pecan sandies sold pecan sandies contribution
chocolate mint sold chocolate mint contribution

Algorithm:
1. enter the shortbread sold, pecan sandies sold, and chocolate mint sold
2. calculate the total cookie sales by adding the shortbread sold, pecan sandies sold, and the
chocolate mint sold
3. calculate the shortbread contribution by dividing shortbread sold by total cookie sales, and
then multiply the result by 100
4. calculate the pecan sandies contribution by dividing pecan sandies sold by total cookie sales,
and then multiply the result by 100
5. calculate the chocolate mint contribution by dividing chocolate mint sold by total cookie
sales, and then multiply the result by 100
6. display the shortbread contribution, pecan sandies contribution, and chocolate mint
contribution

You might also like