Answer to Question #255438 in Visual Basic for Oluwasegun

Question #255438
Write a program to calculate kinetic energy
1
Expert's answer
2021-10-23T08:05:59-0400




Module Module1
    Sub Main()
        Console.Write("Enter the mass(kilograms): ")
        Dim m As Double = Double.Parse(Console.ReadLine())
        Console.Write("Enter the velocity (meters per second): ")
        Dim v As Double = Double.Parse(Console.ReadLine())
        Dim kineticEnergy As Double = (m * v * v) / 2
        Console.WriteLine(vbNewLine + "The  kinetic energy: {0}", kineticEnergy)

        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