The program is an illustration of conditional statements
conditional statements are statements that are used to make decisions
The program written in Python, where comments are used to explain each line is as follows
#This imports the math module
import math
#This get sthe refraction index 1
n1 = float(input("Refraction index 1: "))
#This get sthe refraction index 2
n2 = float(input("Refraction index 2: "))
#This gets the normal angle of incidence in region 1
theta1 = float(input("Normal of incidence in region 1 (degrees): "))
#If n1 is greater than n2, then there is no real solution
if n1 > n2:
print("No real solution")
#If otherwise
else:
#This calculates the angle of incidence
theta2 = math.asin(n1/n2 * math.sin(math.radians(theta1))) * (180/math.pi)
#This prints the angle of incidence
print("Angle of incidence",round(theta2,2),"degrees")
Note that the program only calculates the angle of incidence, it does not print the plot
Read more about conditional statements at:
https://brainly.com/question/24833629