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.
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.