Professional Documents
Culture Documents
Lab 2 4 Whats Missing
Lab 2 4 Whats Missing
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