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
Ghella [55]
3 years ago
6

Write a program that converts degrees Fahrenheit to Celsius using the following formula. degreesC = 5(degreesF – 32)/9 Prompt th

e user to enter a temperature in degrees Fahrenheit (just a whole number of degrees without a fractional part), and then let the program print out the equivalent Celsius temperature, including the fractional part to one decimal point. Use the Math.Round(number, decimal) method. A possible dialog might be:______.
Enter a temperature in degrees Fahrenheit: 72 72 degrees Fahrenheit = 22.2 degrees Celsius.
Computers and Technology
1 answer:
weeeeeb [17]3 years ago
5 0

Answer:

Written in Python

import math

degreesF = float(input("Enter a temperature in degrees Fahrenheit: "))

degreesC = round(5 * (degreesF - 32)/9,1)

print(degreesC)

Explanation:

The following header allows you to use Math.Round() method in Python

import math

The following prompts the user for temperature in degrees Fahrenheit

degreesF = float(input("Enter a temperature in degrees Fahrenheit: "))

The following calculates the degree Celsius equivalent and also round it up

degreesC = round(5 * (degreesF - 32)/9,1)

The following prints the degree Celsius equivalent

print(degreesC)

You might be interested in
The collection of programs on a computer is referred to as _______________.​
schepotkina [342]
It is referred to as software

Software consists of an entire set of programs and routines linked with the operation of a computer. In other words, it is a collection of executable instructions that enable you to interact with a computer and its hardware. A computer would be rendered useless without software.

 






5 0
4 years ago
Having some prior knowledge about your topic is helpful when conducting internet research. please select the best answer from th
larisa86 [58]
The answer is true. I just took the quiz
0 0
4 years ago
Read 2 more answers
Write a program that assigns a value the value of 50000 to an integer variable x, assigns the value of x*x to an integer variabl
Allushta [10]

Answer:

Explanation:

The following code is written in Java and does exactly what the question asks. The variables are long variables instead of integers because integer variables can only be a maximum of 2147483647 and the product of these two variables is much higher than that.

public static void main(String args[]) {

               long x = 50000;

               long y = x * x;

               System.out.println(y);

       }

7 0
3 years ago
What are the benefits of BYOD to organisations<br><br><br><br>​
lara [203]

Answer:

Hello, the benefits of BYOD organizations are,

greater flexibility.

increased workforce mobility.

increased efficiency and productivity.

higher employee satisfaction.

allows greater choice in device type.

cuts down hardware spending and software licensing costs.

cuts down on device management for business-owned devices.

Hope this helps :)

5 0
2 years ago
When you program in a language that uses GUI components, you need to create them from scratch.
Leni [432]

Answer:

B. False

Explanation:

You do NOT need to start from scratch when you program in a language that uses GUI components. You can think of it like the components are add-ons to your programming language.

6 0
4 years ago
Read 2 more answers
Other questions:
  • Every preprocessing directive must begin with:
    11·1 answer
  • Each object that is created from a class is called a(n) ____________ of the class.
    5·2 answers
  • A ________ is a computer or other electronic device connected to a network
    6·1 answer
  • Does anyone know what type of Honda this is and the year of it lol this isn’t school related
    10·1 answer
  • What will be displayed if the following Java code segment is run? System.out.println("one "); System.out.print("two "); System.o
    12·1 answer
  • Implement the Dining Philosophers problem (described on pages 167-170 in the textbook (chapter 2.5.1)). Create a Graphical User
    13·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
  • Write the output of the following program:
    8·1 answer
  • Answering a questi
    13·1 answer
  • State 10 differences between video conferencing and teleconferencing​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!