Combine p4 and p5 into a program that goes both ways, according to the user's wishes. The program should loop until indicated by the user.