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:
#This initializes the scores
scores = ["Eagle","Birdle","Par","Bogey"]
#This gets input for par
par = int(input())
#This gets input for stroke
stroke = int(input())
#This checks if par and stroke are between 3 and 5 (inclusive)
if (par >=3 and par <= 5) or (stroke >=3 and stroke <= 5):
#This calculates the difference between par and stroke
diff = stroke - par + 2
#This prints the corresponding score
print(scores[diff])
#If par or stroke is out of range of 3 and 5
else:
#This prints error
print("Error")
#At the end of the program, the appropriate score is printed.
See attachment for the program source code and the sample run
Read more about python programs at:
https://brainly.com/question/16917190