Answer to Question #296865 in C# for chi

Question #296865

Topic: Function

Write a function-­‐oriented program to convert an input Celsius into Fahrenheit degree. Use the formula F= (9.0/5.0)*C+32. Display the Fahrenheit degree.

Note: you can choose any looping statement if needed.


1
Expert's answer
2022-02-12T07:06:07-0500


using System;
using System.Collections.Generic;
using System.Globalization;


namespace App
{
    class Program
    {
        static double convertCelsiusIntoFahrenheitDegree(double celsius)
        {
            return (9.0 / 5.0) * celsius + 32;
        }
        static void Main(string[] args)
        {
            Console.Write("Enter Celsius degree: ");
            double celsius = double.Parse(Console.ReadLine());
            Console.WriteLine("The Fahrenheit degree: {0}", convertCelsiusIntoFahrenheitDegree(celsius));




            Console.ReadLine();
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS