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
Which type of photographer documents plants and weather in their natural habitat?
mario62 [17]
B, plants and weather are part pf nature.
7 0
2 years ago
Select each of the steps involved in creating a table in a presentation.
klio [65]

Answer:

huh? Making your presentation more interesting through the use of multimedia can help to improve the audience's focus. PowerPoint allows you to use images, audio and video to have a greater visual impact. These visual and audio cues may also help a presenter be more improvisational and interactive with the audience.

7 0
3 years ago
Listening to the audience refers to what in the context of slide presentations
Anit [1.1K]

Answer: D

Explanation: This concept refers to listening for various cues, such as confusion, interest, or boredom.

8 0
3 years ago
Read 2 more answers
Which excel feature makes it easy to copy and paste formulas in multiple cells?.
timama [110]

Answer:

Ctrl + R - Copy a formula from the cell to the left and adjusts the cell references. For example, if you have a formula in cell A2 and you want to copy it to cell B2, select B2 and press Ctrl + R. Tip. Both of the above shortcuts can be used to copy formulas to multiple cells too.

Explanation:

8 0
2 years ago
Write a method , getemailusername, that is passed a string argument that is an email address and returns the user-name part. so
MissTica
<span>public String getemailssername (String aUser) { return aUser.substring(0, aUser.indexOf("@")); }</span>
4 0
3 years ago
Other questions:
  • How can I get a refund of my money back
    12·2 answers
  • How can I get more Gems in the game {Fashion Empire} through a Fire kindle?
    15·2 answers
  • The _______________ database structure is considered one of the key technologies of a new generation of Web-based applications.
    7·1 answer
  • Write an if-else statement with multiple branches. If givenYear is 2100 or greater, print "Distant future" (without quotes). Els
    5·1 answer
  • The online underground is used _____. Select 3 options. by law-abiding citizens only on Black Friday for networking by criminal
    11·1 answer
  • Which of the following are good backup methods you can use to protect important files and folders from loss in the case of a har
    15·2 answers
  • On React
    13·2 answers
  • Which of the following is the primary difference between analog and digital communication?
    12·2 answers
  • Help asap please!
    15·1 answer
  • If non-series-rated overcurrent devices (standard molded-case circuit breakers) are to be installed in the main switchboard, bre
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!