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

C# Programming

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.

Temperature

Fahrenheit Celsius

xxxF xxxC

Note: To change the text color on the console in C#:

Console.foregroundColor = ConsoleColor.Green; // changes the foreground color

Console.ResetColor(); // resets the color

The unicode decimal value for the degree is 176 (00B0 in hex). So, to print the character, assign

char degree = '\u00B0' ;

and print degree as a character type.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!