Answer to Question #166569 in Visual Basic for Fatima

Question #166569

.Atemperature reading in 

Fahrenheit degrees is to be read into 

the computer and converted into 

Celsius degrees, using the formula C = 

(5/9)(F –32


1
Expert's answer
2021-02-25T02:42:12-0500
Module Module1
    Sub Main()
        'Get the fahrenheit degrees from the user
        Console.Write("Enter the fahrenheit degrees: ")
        Dim fahrenheitdegrees As Double = Double.Parse(Console.ReadLine())
        'convert into Celsius degrees, using the formula C = (5/9)(F –32
        Dim celsiusDegrees As Double = (5 / 9) * (fahrenheitdegrees - 32)
        'Display result
        Console.Write("Celsius degrees = " + celsiusDegrees.ToString("N"))
        Console.ReadLine()
    End Sub
End Module

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