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
ExtremeBDS [4]
3 years ago
6

his exercise creates a program to convert the temperature values form Fahrenheit to Celsius for a list of 10 temperature values

between -10° and 75°. The program shall have the following features:1. Create a temperature list that contains 10 values ranging from -10° to 75°.2. Create a function to convert temperature values from Fahrenheit to Celsius.3. Create a while-loop to index the temperature value item in the list and call the function to calculate the temperature value in Celsius.4. Print the temperatures in the format of:32 degrees Fahrenheit = 0 degrees Celsius
Computers and Technology
1 answer:
MissTica3 years ago
5 0

Answer:

def fahrenheit_to_celsius(temperature):

   c = (temperature - 32) / 1.8

   return c    

temperature_list = [-10, -5, 0, 10, 20, 32, 40, 50, 60, 75.2]

i = 0

while i < 10:

   print(str(temperature_list[i]) + " degrees Fahrenheit = " + str(fahrenheit_to_celsius(temperature_list[i])) + " degrees Celsius")

   i += 1

Explanation:

*The code is in Python.

Create a function named fahrenheit_to_celsius that takes one parameter, temperature

Convert the temperature to celsius using the formula

Return the result of the conversion

Create a list holding ten temperatures

Create a while loop that iterates 10 times. Inside the loop, call the function to convert the each temperature in the list and print the result

You might be interested in
In addition to environmental issues, what does true sustainability address?
VashaNatasha [74]

In addition to environmental issues, true sustainability addresses the preservation of social and economic resources.

Sustainability simply refers to the meeting of our needs without wastage or jeopardizing the resources being available to future generations.

<u>Sustainability</u> is vital for the protection of the<u> environment</u>, social equity, and development. When there is <em>sustainability,</em> the environment is protected and the resources are available for others.

Some examples of sustainability include avoiding wasting water, a limit on hunting activities, etc.

Read related link on:

brainly.com/question/13220961

4 0
3 years ago
Read 2 more answers
Choose the correct term to complete the sentence.
Diano4ka-milaya [45]

Answer:

Object-oriented programming

Explanation:

When used in object-oriented programming , a class is a factory for creating object. An object is a collection of data and behavaiors that represent some entity(real or abstract).

6 0
3 years ago
This question is for one of my classes I am in right now, and the question is:
suter [353]

Answer:

I will respond by saying the destination is not the most important , the journey is.

Explanation:

8 0
3 years ago
Your organization's security policy specifies that any mobile device (regardless of ownership) that connects to your internal ne
Veseljchak [2.6K]

Answer:

Create an microsoft intune for remote management of the device

Explanation:

Microsoft intune is a server based management that grants an authorized user or group limited access to information in its database.

Setting up a intune in new acquired devices (it is called bulk enroll) is as easy as connecting a usb to the device and clicking install on the administrator PC. While already existing devices would have to create an account as individual users.

3 0
3 years ago
Look at the following Python code:
aliya0001 [1]

Ump will be assigned to word2

word1[0:3] gets all of the letters from index 0 to index 3 exclusive (that means index 3 is not included)

4 0
3 years ago
Other questions:
  • What is a fragment shader? Question 5 (3 marks) What is trilinear filtering?
    8·1 answer
  • How are devices connected to each other via Bluetooth? Choose two answers.
    11·1 answer
  • Differences between mechanical and optical mouse <br>Plz help me
    6·1 answer
  • The natural functions of Earth seem all _____ in one way or another.
    9·1 answer
  • How do i convert videos on the computer
    10·1 answer
  • Authentication is a mechanism whereby unverified entities or supplicants who seek access to a resource provide a label by which
    12·1 answer
  • Write code using the range function to add up the series 99, 98, 97,...
    11·1 answer
  • Why did they meet their friend<br><br><br><br><br><br><br><br>​
    8·2 answers
  • The current in a resistor is 5.0 A, and its power is 60 W. What is the voltage?
    12·2 answers
  • Use a while loop to output the even number from 100 to 147? This is python
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!