PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/MathWorks

Calculate tiered cost and break-even

Last updated: Mar 29, 2026

Quick Overview

This question evaluates the ability to model tiered piecewise cost functions, compute total and average unit costs, and perform break-even analysis using basic algebra and arithmetic.

  • medium
  • MathWorks
  • Statistics & Math
  • Software Engineer

Calculate tiered cost and break-even

Company: MathWorks

Role: Software Engineer

Category: Statistics & Math

Difficulty: medium

Interview Round: Take-home Project

A vendor charges a fixed setup fee of $500 per order. The unit price is $12 for the first 1,000 units and $9 for each additional unit beyond 1,000. Shipping costs $0.80 per unit for the first 2,000 units and $0.50 for each unit thereafter. (a) Write a formula for total cost as a function of quantity q. (b) Compute total and average cost per unit for q = 1,600 and q = 3,200. (c) If your resale price is $15 per unit, what is the break-even quantity? Show steps.

Quick Answer: This question evaluates the ability to model tiered piecewise cost functions, compute total and average unit costs, and perform break-even analysis using basic algebra and arithmetic.

Related Interview Questions

  • Deduce position from logic clues - MathWorks (hard)
  • Compute probability of drawing reds - MathWorks (easy)
  • Compute urn-draw probabilities and expectations - MathWorks (easy)
  • Deduce row order from logic clues - MathWorks (easy)
MathWorks logo
MathWorks
Aug 10, 2025, 12:00 AM
Software Engineer
Take-home Project
Statistics & Math
2
0

Tiered Pricing and Shipping Cost Function

You are ordering q units from a vendor with the following pricing:

  • Fixed setup fee per order: $500
  • Unit price: 12forthefirst1,000units;12 for the first 1,000 units; 12forthefirst1,000units; 9 for each additional unit beyond 1,000
  • Shipping: 0.80perunitforthefirst2,000units;0.80 per unit for the first 2,000 units; 0.80perunitforthefirst2,000units; 0.50 per unit thereafter

Tasks: (a) Write a formula for the total cost C(q) as a function of quantity q. (b) Compute the total and average cost per unit for q = 1,600 and q = 3,200. (c) If your resale price is $15 per unit, find the break-even quantity. Show your steps.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More MathWorks•More Software Engineer•MathWorks Software Engineer•MathWorks Statistics & Math•Software Engineer Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.