In the opened procedure code window, enter the code shown in Figure 7.35 into the…