To create the algorithm for the described situation, you can arrange the lines of code in the following order:
- INPUT total
- IF total > 200 THEN
-
OUTPUT you get a 20% discount
- ELSE IF total < 200 AND total > 100 THEN
-
OUTPUT you get a 10% discount
- ELSE
-
OUTPUT you get no discount
This order ensures that the program checks the user's spending total correctly and provides the appropriate discount message based on the specified criteria.