Answer:
The formula is: 1.2236n + 13
Step-by-step explanation:
Given data:
14-stage pipeline
13% of the instructions for a given test program
88% are correctly predicted
1 cycle branch delay
12% of the branches suffer a 7-cycle mis-prediction penalty
Question: Develop a formula for the number of cycles it will take to complete n lines of the program
Here
are branching instructions, but, 88% are correctly predicted, therefore:

According the question, 12% of the branches suffer a 7-cycle mis-prediction penalty, the delay due this mis-prediction:

The total delay:
0.1144n + 0.1092n = 0.2236n
The number of cycles it will take to complete n lines of the program:
n + 0.2236n + 14 - 1 = 1.2236n + 13