Question: Create an algorithm that will read in the subtotal of an order. Calculate and print the discount applied and the new subtotal after the discount
Create an algorithm that will read in the subtotal of an order. Calculate and print the discount applied and the new subtotal after the discount has been applied. If the subtotal is greater than $100, the discount to be applied is 40%, otherwise the discount to be applied is 25%. The new subtotal is calculated by subtracting the discount applied from the subtotal. Write the algorithm using pseudocode, and create a desk check using at least one set of test data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
