Selection Ex 4 - Calculate Discount

Created By: M Ritter | Difficulty Level: 3

Description

Write a program to input the value of goods purchased in a shop. A discount is subtracted from the value to find the amount owed. If the value is $200 or more, a 10% discount is given. If the value is between $100 and $199.99, a 5% discount is given. Display the value of the goods, discount given and amount owed.

Puzzle

Drag from here

  • OUTPUT cost
  • INPUT value
  • IF value >= 200 THEN
  • CALCULATE cost = value - (value / 100 * 10)
  • ELSEIF value >= 100 THEN
  • ENDIF
  • ELSE
  • BEGIN
  • SET cost = value
  • END
  • CALCULATE cost = value - (value / 100 * 5)

Construct your solution here