The program is an illustration of if conditional statement. The programming language is not stated; so, I will answer the question using Python.
The program in Python where comments are used to explain each line is as follows:
<em>#This initializes the scores</em>
scores = ["Eagle","Birdle","Par","Bogey"]
<em>#This gets input for par</em>
par = int(input())
<em>#This gets input for stroke</em>
stroke = int(input())
<em>#This checks if par and stroke are between 3 and 5 (inclusive)</em>
if (par >=3 and par <= 5) or (stroke >=3 and stroke <= 5):
<em>#This calculates the difference between par and stroke</em>
diff = stroke - par + 2
<em>#This prints the corresponding score</em>
print(scores[diff])
<em>#If par or stroke is out of range of 3 and 5</em>
else:
<em>#This prints error</em>
print("Error")
<em>#At the end of the program, the appropriate score is printed.</em>
See attachment for the program source code and the sample run
Read more about python programs at:
brainly.com/question/16917190