1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sveticcg [70]
3 years ago
14

During the past decade ocean levels have been rising faster than in the past, an average of approximately 3.1 millimeters per ye

ar. Write a program that computes how much ocean levels are expected to rise during the next 15 years if they continue rising at this rate. Display the answer in both centimeters and inches.
Computers and Technology
1 answer:
Alecsey [184]3 years ago
4 0

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

You might be interested in
Write the steps to open an existing file in MS Word.​
777dan777 [17]

Explanation:

Choose Open from the File menu. The Open a File dialog box lists files and folders in your current folder. ...

Select the name of the document you want to open, or type the document name in the Enter file name field.

Press Return or click OK.

4 0
2 years ago
Read 2 more answers
FIRST PERSON TO FINISH GETS BRAINLIST
ivanzaharov [21]
1. D

2. D

3. ?

4. False

5. True

3 0
3 years ago
What would be considered a benefit of using simulation in the modern industry field? Simulation increases labor and manufacturin
Sholpan [36]
Simulation predicts possible problems before they occur
5 0
2 years ago
Identify the first step in the process of setting margins.
olga55 [171]
Read the whole passage first then go back and the margin is supposed to be the main idea of the thing you are reding

7 0
4 years ago
... ... how many dots are there ... ... ... ...
LUCKY_DIMON [66]

Answer:

18

Explanation:

i guessing okay.....

4 0
3 years ago
Read 2 more answers
Other questions:
  • You are troubleshooting a cpu and have already cut power, disconnected the power cable, opened the case, and put on your antista
    6·1 answer
  • Describe an application where a parallel circuit might work better than a series circuit.
    15·1 answer
  • The next four octal numbers after 36 is:________.
    10·1 answer
  • write the structure of an email message ques.2 what do you mean by search engine? write its component .ques. 3 what are the adva
    9·1 answer
  • Which of the following statements explains why
    5·1 answer
  • What type of switch is used to combine multiple network connections into a single link?a. core switchb. gateway switchc. aggrega
    15·1 answer
  • The blank contains the most commonly used commands
    8·1 answer
  • If you face an investigation where dangerous substances might be around, you may need to obtain which of the following?
    13·2 answers
  • Write a recursive function to determine if a number is prime.
    8·1 answer
  • a client device on your network is trying to authenticate via radius proxy, but is failing. you check the relevant policy on the
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!