title: How to write a program that solves discount + price
body: <p>A software company sells a package that retails for $99. Quantity discounts are applied if the number of packages ordered is:</p>
  
  <pre><code>Quantity              Discount
  10 - 19                20%
  20 - 49                30%
  50 - 99                40%
  100 or more            50%
  </code></pre>
  
  <p>Create an application SoftwareSales that prompts the user to enter the number of software packages ordered, calculates the cost of the purchase, and displays the result.
  The application can be console or GUI based.</p>
  
  <p>How should I approach this?</p>
  
  <p>I know I need something like this in there?</p>
  
  <pre><code>if(score &lt; 10) {
      discount = 0.0
  } else if(score &lt; 20){
      discount = 0.1
  }
  // other cases go here
  </code></pre>
  
  <p>Anyone want to at least give me the frame/skeleton for a program like this? </p>