Question: Subject: C# .NET Write a program that converts a temperature given in Fahrenheit into Celsius. Allow the user to enter values for the original Fahrenheit

Subject: C# .NET

Write a program that converts a temperature given in Fahrenheit into Celsius. Allow the user to enter values for the original Fahrenheit value. Display the original temperature and the formatted converted value. Number align values. Use appropriate methods for entering, calculating, and outputting results.

This is what I have...

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

namespace TempConversion { class Program { static void Main(string[] args) { double celsius; Console.Write("Enter temperature in Fahrenheit : "); double fahrenheit = Convert.ToDouble(Console.ReadLine()); celsius = (fahrenheit - 32) * 5 / 9; Console.WriteLine("The converted Celsius temperature is : " + celsius); Console.ReadLine(); } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To develop a more detailed and complete solution for converting temperatures from Fahrenheit to Celsius in C here is a revised answer that incorporate... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!