Problem

Construct a solution algorithm for the following programming problems. Your solution sho...

Construct a solution algorithm for the following programming problems. Your solution should contain:

• a defining diagram

• a pseudocode algorithm

• a desk check of the algorithm.

Design an algorithm that will prompt a terminal operator for the price of an article and a pricing code. Your program is then to calculate a discount rate according to the pricing code and print to the screen the original price of the article, the discount amount and the new discounted price. Calculate the pricing code and accompanying discount amount as follows:

If the pricing code is Z, the words ‘No discount’ are to be printed on the screen. If the pricing code is not H, F, T, Q or Z, the words ‘Invalid pricing code’ are to be printed.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT