Assuming the ocean’s level is currently rising at about 1.5 millimeters per year, write a program that displays a table showing the number of millimeters that the ocean will have risen each year for the next 25 years.
1
Expert's answer
2017-12-22T04:41:44-0500
# Use a python 3 and higher print('Year | Number of millimeters') #Head of table for i in range(1, 26): #Loop for each year, not including 26 if i < 10: # if-else constuction for pretty view print(i, ' | ', 1.5*i) #Print table cell and calculate Number of millimeters else: print(i, ' | ', 1.5*i) #The same calculation, but another view
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment