0% found this document useful (0 votes)
10 views2 pages

Algorithm Table for Sales Analysis

The document outlines a guide for calculating weekly sales for three stores, detailing the necessary variables and constants. It includes an algorithm for inputting sales data, processing the total sales, and calculating the percentage of total sales for each store. A desk check example demonstrates the calculations with specific input values.

Uploaded by

bobbysmith13212
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Algorithm Table for Sales Analysis

The document outlines a guide for calculating weekly sales for three stores, detailing the necessary variables and constants. It includes an algorithm for inputting sales data, processing the total sales, and calculating the percentage of total sales for each store. A desk check example demonstrates the calculations with specific input values.

Uploaded by

bobbysmith13212
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Blank Table- Use this as a guide for your algorithms, variables, and desk check.

VARIABLE
OUTPUT Weekly Sales totalWeekSales
Store 1 percent S1percent
Store 2 percent S2percent
Store 3 percent S3percent
INPUT Store 1 sales S1sales
Store 2 sales S2sales
Store 3 sales S3sales

CONSTANTS

PROCESSING Sales S1,s2,s3 sales


VARIABLES

Algorithm:
Input:
S1sales, s2sales, s3sales

Processing:

totalWeekSales = S1sales + S2sales + S3sales

S1percent = S1sales / totalWeekSales


S2percent = S2sales / totalWeekSales
S3percent = S3sales / totalWeekSales

Output:

Desk check:
Input: S1sales = 10 S2sales = 40 S3sales = 50

Processing:

totalWeekSales = 10 + 40 + 50

S1percent = 10 / 100 (totalWeekSales)


S2percent = 40 / 100 (totalWeekSales)
S3percent = 50 / 100 (totalWeekSales)
Output:

Write: totalWeekSales = 100


S1percent = 10
S2percent = 40
S3percent = 50

You might also like