Question

Algorithms are used all the time today to solve problems, even if people are not aware...

Algorithms are used all the time today to solve problems, even if people are not aware they are using them. Algorithms break down one big problem into many smaller problems or steps that can be more easily solved. One such problem in the business that can be solved with algorithms is how much profit are they making based on the sales of a product. The algorithm can be as follows:

Step 1: How many of the product has been sold?

Step 2: What is the price of each product?

Step 3: Calculate the total sales income by multiplying the number of products sold by the cost of each product

Step 4: How much does it cost to make the product?

Step 5: Calculate total expense by multiplying cost to make one product by the number of products sold

Step 6: Calculate profit by subtracting total expense from total income.

Respond to the following in a minimum of 100 words:

Can you write an algorithm as a list of steps?

Homework Answers

Answer #1

Algorithm: Calculate_Profit

[ N is the number of the product has been sold, Cost is the price of each product, Total-sales is the total sales income, Make-cost is the cost to make the product, Total-expense is the total expense of the N products, Profit is the total profit on the sales of the N products ]

Step 1: Start [Start of the algorithm]

Step 2: Input N     [Input the number of the product has been sold ]

Step 3: Input Cost     [Input the cost is the price of each product ]

Step 4: Total-sales = N x Cost [Calculate the total sales income]

Step 5: Input Make-cost [Input the cost to make the product,]

Step 6: Total-expense = N x Make-cost [Calculate total expense ]

Step 7: Profit = Total-sales - Total-expense    [Calculate profit ]

Step 8: Print Profit    [Print/Output the profit]

Step 9: End [End of the algorithm]

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Break-Even Point and Target Profit Measured in Units (Multiple Products). Hi-Tech Incorporated produces two different products...
Break-Even Point and Target Profit Measured in Units (Multiple Products). Hi-Tech Incorporated produces two different products with the following monthly data. Cell GPS Total Selling price per unit $100 $400 Variable cost per unit $  40 $240 Expected unit sales 21,000 9,000 30,000 Sales mix 70 percent 30 percent 100 percent Fixed costs $1,800,000 Assume the sales mix remains the same at all levels of sales. Required: Calculate the weighted average contribution margin per unit. How many units in total must...
Dos Mfg Co. sells two products. Product A sells for $10 per unit with variable costs...
Dos Mfg Co. sells two products. Product A sells for $10 per unit with variable costs of $6 per unit. Product B sells for $20 per unit with variable costs of $12 per unit. Product A sells 75%, while B sells 25% of the total units sold. Currently, with combined sales of 20,000 units, the company made Total Revenue of $250,000, after subtracting variable cost got Total Contribution Margin of $100,000, and after subtracting Total Fixed Cost of $50,000, earned...
Product J is one of the many products manufactured and sold by Oceanside Company. An income...
Product J is one of the many products manufactured and sold by Oceanside Company. An income statement by product line for the past year indicated a net profit for Product J of $2,750. This net profit resulted from sales of $275,000, cost of goods sold of $186,500, and operating expenses of $85,750. It is estimated that 30% of the cost of goods sold represents fixed factory overhead costs and that 40% of the operating expense is fixed. If Product J...
Product J is one of the many products manufactured and sold by Oceanside Company. An income...
Product J is one of the many products manufactured and sold by Oceanside Company. An income statement by product line for the past year indicated a net profit for Product J of $2,750. This net profit resulted from sales of $275,000, cost of goods sold of $186,500, and operating expenses of $85,750. It is estimated that 30% of the cost of goods sold represents fixed factory overhead costs and that 40% of the operating expense is fixed. If Product J...
You are required to use a financial calculator or spreadsheet (Excel) to solve 10 problems (provided...
You are required to use a financial calculator or spreadsheet (Excel) to solve 10 problems (provided on page 5) on the applications of the time value of money. You are required to show the following four steps for each problem (sample problems and solutions are provided for guidance): (i) Develop a timeline (linear representation of the timing of cash flows). (ii) Identify the time value of money variable (PV, FV, PMT, N, or I/YR) that needs to be solved/calculated in...
Stahl Inc. produces three separate products from a common process costing $100,300. Each of the products...
Stahl Inc. produces three separate products from a common process costing $100,300. Each of the products can be sold at the split-off point or can be processed further and then sold for a higher price. Shown below are cost and selling price data for a recent period. Sales Value at Split-Off Point Cost to Process Further Sales Value after Further Processing Product 10 $59,400 $100,900 $190,100 Product 12 15,000 30,100 34,000 Product 14 55,600 149,400 215,900 Determine total net income...
(Ch6) BM Company sells two products, X and Y. Product X sells for $20 per unit...
(Ch6) BM Company sells two products, X and Y. Product X sells for $20 per unit with variable costs of $11 per unit. Product Y sells for $30 per unit with variable costs of $16 per unit. During this period, BM sold 16,000 units of X and 4,000 units of Y, making Total Revenue of $440,000, and after subtracting variable cost got Total Contribution Margin of $200,000, and after subtracting Total Fixed Cost of $110,000, earned Operating Profit of $90,000....
(Ch6) BM Company sells two products, X and Y. Product X sells for $20 per unit...
(Ch6) BM Company sells two products, X and Y. Product X sells for $20 per unit with variable costs of $11 per unit. Product Y sells for $30 per unit with variable costs of $16 per unit. During this period, BM sold 16,000 units of X and 4,000 units of Y, making Total Revenue of $440,000, and after subtracting variable cost got Total Contribution Margin of $200,000, and after subtracting Total Fixed Cost of $110,000, earned Operating Profit of $90,000....
Suppose there is a perfectly competitive industry in Dubai, where all the firms are identical. All...
Suppose there is a perfectly competitive industry in Dubai, where all the firms are identical. All the firms in the industry sell their products at 20 AED. The market demand for this product is given by the equation: (Total marks = 5) Q = 25 – 0.25P Furthermore, suppose that a representative firm’s total cost is given by the equation: TC = 50 +4Q + 2Q2 What is the inverse demand function for this market? Calculate the MC function? Calculate...
Stahl Inc. produces three separate products from a common process costing $ 100,500 . Each of...
Stahl Inc. produces three separate products from a common process costing $ 100,500 . Each of the products can be sold at the split-off point or can be processed further and then sold for a higher price. Shown below are cost and selling price data for a recent period. Sales Value at Split-Off Point Cost to Process Further Sales Value after Further Processing Product 10 $ 60,100 $ 100,300 $ 190,200 Product 12 15,500 29,200 34,200 Product 14 54,100 151,000...