The option which could be used to replace steps 4 and 5 so that the algorithm works as intended is: option D.
An algorithm can be defined as a standard formula (procedures) which is made up of a set of finite steps and instructions that are executed on a computer system, so as to enable a software solve a particular problem under appropriate conditions.
In this scenario, the options which could be used to replace steps 4 and 5 so that the algorithm works as intended by the programmer are:
Read more on algorithm here: brainly.com/question/24793921
#SPJ1