Lab Goal: practice problem-solving, pseudo code, if statements

You want to stain your hardwood floor.   Each can of wood stain costs $10 and will cover 50 square feet. Write a program to calculate the number of cans of stain needed and how much it will cost. If the person making the purchase is in the military give them a 10% discount on the cost; If over 60, give them a 5% discount; If the cost is over $200 give a $10 discount. Let the purchaser know how much, if any, discount they would receive. 

 

Requirements

  1. Write your pseudocode to solve the problem in the comments at the top of the program.
  2. Use variables appropriatey in your program.  Calculations should primarily use variables.
  3. Have a print statement that provides pertinent information.
  4. Use debugging techniques as/if you experience errors.
  5. Test with length/width: (12, 16), (20, 24), (30, 50).   Note: your code should not have to change between tests. If you correct an error rerun the previous tests.
  6. When complete, submit by email the .java file  and a cropped screen shot of your results.

Complete the zyBooks challenge.