Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

Did Elizabeth use visual aids effectively?

Answered: 1 week ago

Question

What is the mean world syndrome?

Answered: 1 week ago

Question

Is Elizabeths speech persuasive or informative or both?

Answered: 1 week ago