Imagine a child building a simple robot out of cardboard and wires, coding it to move forward, and then testing…