Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started