Computational algorithm for a distributed optimal control problem of parabolic type with terminal inequality constraints