Answer:
Program in Python is as follows:
rise = 3.1
for i in range(1,16):
print("Rise in Year "+str(i))
cm = rise * 0.1 * i
inch = rise/25.4 * i
print(str(cm)+" centimetres")
print(str(inch)+" inches")
print
Explanation:
This line initializes the rise of the ocean level
rise = 3.1
The following iterates from 1 to 15 (which stands for year)
<em>for i in range(1,16):</em>
print("Rise in Year "+str(i))
This calculates the rise in each year in centimetre
cm = rise * 0.1 * i
This calculates the rise in each year in inches
inch = rise/25.4 * i
The line prints calculated ocean rise in centimetres
print(str(cm)+" centimetres")
The line prints calculated ocean rise in inches
print(str(inch)+" inches")
print