Write a program named FahrenheltToCelsius that accepts a temperature in Fahrenheit from a user and converts it to Celsius by subtracting 32 from the Fahrenheit value and multiplying the result by the double 5.0/9.0.
Write a program named FahrenheltToCelsius that accepts a temperature in Fahrenheit from a user and converts it to Celsius by subtracting 32 from the Fahrenheit value and multiplying the result by the double 5.0/9.0.
Chapter5: Making Decisions
Section: Chapter Questions
Problem 8PE
Related questions
Question
Write in c#.
use the standard numeric format string and the ToString() method to convert a floating-point value to a string that has the desired format.
![Instructions
FahrenheitTocelsius.cs +
1 using System;
2 using static System.Console;
Write a program named
3 class FahrenheitTocelsius
FahrenheitToCelsius that accepts
4 {
a temperature in Fahrenheit from
static void Main()
a user and converts it to Celsius
by subtracting 32 from the
Fahrenheit value and multiplying
the result by the double 5.0/9.0.
Display both values to one
decimal place.
For example, if 88.5 degrees is
input, the output would be: 88.5
Fis 31.4 C](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F87c9aea5-c8fb-4abe-a304-6fcd25b0f808%2Fb2570a39-262c-431a-a7a4-4d8fe2ae832f%2Fcp8m91m_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Instructions
FahrenheitTocelsius.cs +
1 using System;
2 using static System.Console;
Write a program named
3 class FahrenheitTocelsius
FahrenheitToCelsius that accepts
4 {
a temperature in Fahrenheit from
static void Main()
a user and converts it to Celsius
by subtracting 32 from the
Fahrenheit value and multiplying
the result by the double 5.0/9.0.
Display both values to one
decimal place.
For example, if 88.5 degrees is
input, the output would be: 88.5
Fis 31.4 C
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning